I am using PuTTY. I am trying to copy a folder from one server to another server in Linux. But I am getting this error on to the PuTTY console as

myfolder: Not a regular file 

Is it possible to copy a folder using scp?

It worked on a zip file when I tried it earlier on.

link|improve this question
1  
if you are using windows, try winscp – Alessandro Pezzato Oct 10 '11 at 9:17
feedback

migrated from stackoverflow.com Oct 10 '11 at 14:01

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 0 down vote accepted

Try scp -r. It should do the trick.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown