Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

This question already has an answer here:

In sftp> put * or get * doesnt get the hidden files or directories inside the dir. What to do if I want to use sftp to copy entire dir,along with subdirs that are hidden also? For example a .git directory inside the directory. Please do not tell me scp commands. How to do that in sftp shell?

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, slhck Dec 17 '13 at 20:21

This question was marked as an exact duplicate of an existing question.

up vote 0 down vote accepted

Use -r switch

sftp> get -r folder/
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.