- To open an SFTP connection to a remote system, use the SFTP command followed by the remote server username and the IP address or domain name:
sftp remote_username@server_ip_or_hostname
- Now you need to choose a path where you want to get the file/folder to be transferred. In order to do this run the command “lcd” and specify the destination path.
lcd /path/where_you_need_to/get_the_file
Once you did that download the files remotely from the source using the get command
- To download a directory from the remote system, use the recursive -r option:
That's It !get -r /path/to/remote_directory
Check out the video tutorial to get in detail procedure for the same. You can also go through the blog.