So, I'm attempting to simply transfer folder of files from my local computer to a server via ssh and scp. After sudoing I'm using the command as follows:
scp -r C:/desktop/myfolder/deployments/ user@host:/path/to/whereyouwant/thefile
I get the error:
ssh: C: Name or service not known
I'm guessing its 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With