SCP w/ ssh: copying a local file from windows to a remote server using scp
问题 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. 回答1: If your drive letter is C, you should be able to use scp -r \desktop\myfolder\deployments\ user@host:/path/to