Skip to main content

Securely Files Transfer with Remote Server using SFTP

Recently I have post a note about how to transfer files among linux servers using terminal. Now I note some commands while using SFTP. Like SSH, we can start to establish connection with remote server using following command.
$ sftp user@remote.server
and some command that we'll like to use
  • pwd: check current remote directory location
  • ls: list all files in current remote directory
  • cd: move to other remote directory
  • lpwd: check current local directory location
  • lls: list all files in current local directory
  • lcd: move to other local directory
  • get remoteFile localFile: download remoteFile to locaFile
  • get -r someDirectory: download files recursively from a remote directory, -P or -p to maintain appropriate permission
  • put localFile or put -r localDirectory to send files to remote server
  • df -h to check directory space
  • ! to go to local shell and exit to return to SFTP session
Complete commands on Ubuntu manuals: http://manpages.ubuntu.com/manpages/utopic/man1/sftp.1.html

Comments

  1. It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read. best Pcloud transfer service provider.

    ReplyDelete

Post a Comment