Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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/ user@host:/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\ user@host:/path/to/whereyouwant/thefile

With putty,  you can use pscp. 

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

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...