How To Install Sftp?

How To Install Sftp?

sftp

Secure File Transfer Program.
Interactive program to copy files between hosts over SSH.
For non-interactive file transfers, see `scp` or `rsync`.

Maintainer: Debian OpenSSH Maintainers



Section: net

Install sftp

  • Debian apt-get install openssh-client Click to copy
  • Ubuntu apt-get install openssh-client Click to copy
  • Alpine OS apk add openssh Click to copy
  • Arch Linux pacman -S openssh Click to copy
  • Kali Linux apt-get install openssh-client Click to copy
  • CentOS yum install openssh-clients Click to copy
  • Fedora dnf install openssh-clients Click to copy
  • Raspbian apt-get install openssh-client Click to copy
  • macOS brew install openssh Click to copy

Secure File Transfer Program. Interactive program to copy files between hosts over SSH. For non-interactive file transfers, see `scp` or `rsync`.

How to use sftp?

Below are few example commands for sftp that you can use in the terminal.

Connect to a remote server and enter an interactive command mode:
sftp [email protected]_hostClick to copy
Connect using an alternate port:
sftp -P remote_port [email protected]_hostClick to copy
Transfer remote file to the local system:
get /path/remote_fileClick to copy
Transfer local file to the remote system:
put /path/local_fileClick to copy
Transfer remote folder to the local system recursively (works with `put` too):
get -R /path/remote_folderClick to copy
Get list of files on local machine:
llsClick to copy
Get list of files on remote machine:
lsClick to copy
Installation of latest sftp command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2023 latest package from the repository and install it in your computer/server.