How To Install Sftp?
sftp
Maintainer: Debian OpenSSH Maintainers
Email: [email protected] .
Website: https://www.openssh.com/
Section: net
Install sftp
-
Debian
apt-get install openssh-clientClick to copy -
Ubuntu
apt-get install openssh-clientClick to copy -
Alpine OS
apk add opensshClick to copy -
Arch Linux
pacman -S opensshClick to copy -
Kali Linux
apt-get install openssh-clientClick to copy -
CentOS
yum install openssh-clientsClick to copy -
Fedora
dnf install openssh-clientsClick to copy -
Raspbian
apt-get install openssh-clientClick to copy -
macOS
brew install opensshClick 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 copyConnect using an alternate port:sftp -P remote_port [email protected]_hostClick to copyTransfer remote file to the local system:get /path/remote_fileClick to copyTransfer local file to the remote system:put /path/local_fileClick to copyTransfer remote folder to the local system recursively (works with `put` too):get -R /path/remote_folderClick to copyGet list of files on local machine:llsClick to copyGet 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 2026 latest package from the repository and install it in your computer/server.




