SFTP (Secure File Transfer Program) is 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.
The sftp command is part of the net-misc/openssh package, and deployments of Gentoo Linux should already have OpenSSH installed, as the package is part of the system set. The presence and proper functioning of OpenSSH can be checked by running the sftp command, which should output a usage statement:
usage: sftp [-46AaCfNpqrv] [-B buffer_size] [-b batchfile] [-c cipher] [-D sftp_server_path] [-F ssh_config] [-i identity_file] [-J destination] [-l limit] [-o ssh_option] [-P port] [-R num_requests] [-S program] [-s subsystem | sftp_server] destination
If no usage statement is printed, OpenSSH may be corrupt, or not installed. Try re-installation by following the Installation section from the SSH article.
- CurlFtpFS — allows for mounting an FTP folder as a regular directory to the local directory tree.
- SCP — an interactive file transfer program, similar to the copy command, that copies files over an encrypted SSH transport.
- SSH — the ubiquitous tool for logging into and working on remote machines securely.
- SSHFS — a secure shell client used to mount remote filesystems to local machines.
- The official sftp man page locally via man sftp or online at openbsd.org
- Gentoo Forums :: View topic - (SOLVED) sftp autocompletion, Welcome – Gentoo Linux, October 15th, 2015. Retrieved on October 15th, 2015.