Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Oct 10 '11 at 14:01

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

if you are using windows, try winscp – Alessandro Pezzato Oct 10 '11 at 9:17
up vote 0 down vote accepted

Try scp -r. It should do the trick.

share|improve this answer

You must log in to answer this question.