Explore Courses Blog Tutorials Interview Questions
0 votes
in Linux by (9.5k points)

I use the below command to transfer folder of files from local computer to server via ssh and scp. 

scp -r C:/desktop/myfolder/deployments/ [email protected]:/path/to/whereyouwant/thefile

This is the error I get when I run it on putty+windows 7. Can anyone tell me how to copy local files from windows to remote servers using scp?

1 Answer

0 votes
by (19.7k points)

You should use the below commands when the drive letter is C without drive letter and backslashes. 

scp -r \desktop\myfolder\deployments\ [email protected]:/path/to/whereyouwant/thefile

With putty,  you can use pscp. 

Interested in Linux? Check out this Linux Certification by Intellipaat.  

Related questions

Browse Categories