Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.