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 if there is any command in psftp
to copy folder and subfolder recursively to my local machine.
You can use scp. (example) scp -r user@remote:/path/to/folder /home/user/Desktop/