'Can't upload zip file via SSH on mac

I am using Termius to upload files via SSH.

My file location on MAC pc is:

/Applications/MAMP/htdocs/freelancer/youtube-profile-scrapper/mine.zip

Now, I want to upload that file in public_html/youtube-scrap folder.

To do that I am running the following command:

scp '/Applications/MAMP/htdocs/freelancer/youtube-profile-scrapper/mine.zip' my_username@my_host_ip_address:/public_html/youtube-scrap

but getting error messge:

Could not create directory '/home/539799.cloudwaysapps.com/jezczhzuvr/.ssh'.

This is live folder where I want to upload the zip file:

https://phpstack-539799-2547821.cloudwaysapps.com/youtube-scrap/

ssh


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source