Search code examples
scriptingsftpputty

How to copy entire folder and subfolder from remote sever to local machine using PuTTY psftp


I am doing an automation to copy folder and subfolder from remote server to local machine i know the command to copy all the files inside folder

mget *.extension

But I want to know is there any command in psftp to copy folder and subfolder recursively to my local machine.


Solution

  • You can use scp. (example) scp -r user@remote:/path/to/folder /home/user/Desktop/