Using scp to Upload or Download Content From Your Hosting Provider


Click Here to Download Over 10,000 fonts

Most people use some form of ftp gui like filezilla, winscp to upload or download content from their hosting provider. So for simplicity sake, and because I’m always working from the bash, I started using scp. But I ran into a problem every time I tried to upload a file using

 scp file username@domainName.org:/data
username@domainName.org's password: 
scp: /data: Permission denied

The reason being that my scp command uses absolute path, which is not the same as the path I’m in when using other app like filezilla. So to fix this just remove the leading slash “/”
upload file:

scp filename username@domainName.org:data/

download file:

scp username@domainName.org:data/file localfile
Share This!

Leave a Reply

Your email address will not be published.