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-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]_host
Click to copyConnect using an alternate port:sftp -P remote_port [email protected]_host
Click to copyTransfer remote file to the local system:get /path/remote_file
Click to copyTransfer local file to the remote system:put /path/local_file
Click to copyTransfer remote folder to the local system recursively (works with `put` too):get -R /path/remote_folder
Click to copyGet list of files on local machine:lls
Click to copyGet list of files on remote machine:ls
Click 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.