SFTP

Resources

SFTP (Secure File Transfer Program) is [[Article description::an interactive file transfer program, similar to ftp, which performs all operations over an encrypted SSH transport.]] It uses many features of SSH, such as public key authentication and compression.[1]

Installation

On the majority of Gentoo mediums sftp should be already installed. To verify installation run the sftp command. A usage statement should appear:

user $sftp
usage: sftp [-1246aCfpqrv] [-B buffer_size] [-b batchfile] [-c cipher]
          [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-l limit]
          [-o ssh_option] [-P port] [-R num_requests] [-S program]
          [-s subsystem | sftp_server] host
       sftp [user@]host[:file ...]
       sftp [user@]host[:dir[/]]
       sftp -b batchfile [user@]host

If no usage statement is displayed then sftp is not installed or has been corrupted. Follow the installation instructions beginning at the USE flag section in the SSH article.

Configuration

For having tab completion the libedit USE flag needs to be enabled.[2] For further configuration see the configuration section in the SSH article.

See also

  • SSH — an encrypted terminal program that replaces the classic telnet tool on Unix-like operating systems.
  • SCP — an interactive file transfer program, similar to the copy command, that copies files over an encrypted SSH transport.
  • CurlFtpFS — allows for mounting an FTP folder as a regular directory to the local directory tree.

External resources

  • The official sftp man page locally via man sftp or online at openbsd.org

References

This article is issued from Gentoo. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.