I try to transfer a folder of files from my local computer to a server via ssh
and scp
. After getting sudo
privileges, I'm using the command as follows:
scp -r C:/desktop/myfolder/deployments/ user@host:/path/to/whereyouwant/thefile
However, I get the following error:
ssh: C: Name or service not known
I'm guessing it is due to my syntax for C:/desktop
etc. Any ideas?
BTW I'm using putty + Windows 7.
If your drive letter is C, you should be able to use
scp -r \desktop\myfolder\deployments\ user@host:/path/to/whereyouwant/thefile
without drive letter and backslashes instead of forward slashes.
You are using putty, so you can use pscp. It is better adapted to Windows.