How To Install openssh-sftp-server on Ubuntu 20.04
Introduction
In this tutorial we learn how to install openssh-sftp-server
on Ubuntu 20.04.
What is openssh-sftp-server
openssh-sftp-server is:
This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group.
Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It can be used to provide applications with a secure communication channel.
This package provides the SFTP server module for the SSH server. It is needed if you want to access your SSH server with SFTP. The SFTP server module also works with other SSH daemons like dropbear.
OpenSSH’s sftp and sftp-server implement revision 3 of the SSH filexfer protocol described in:
http://www.openssh.com/txt/draft-ietf-secsh-filexfer-02.txt
Newer versions of the draft will not be supported, though some features are individually implemented as extensions. Task: cloud-image, openssh-server, ubuntu-core
Package: openssh-sftp-server Architecture: amd64 Version: 1:8.2p1-4 Multi-Arch: foreign Priority: optional Section: net Source: openssh Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian OpenSSH Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 141 Depends: openssh-client (= 1:8.2p1-4), libc6 (>= 2.26), libssl1.1 (>= 1.1.0) Recommends: openssh-server | ssh-server Breaks: openssh-server (« 1:6.5p1-5) Replaces: openssh-server (« 1:6.5p1-5) Enhances: openssh-server, ssh-server Filename: pool/main/o/openssh/openssh-sftp-server_8.2p1-4_amd64.deb Size: 51500 MD5sum: 918fb6be61f193a4e198054b0b605021 SHA1: e3ecdb7c423fe7e843e0bf6683b43b49f5a7e0d1 SHA256: 3b66e4a557484d4de2fea89bd597ba5af4c0b72b8e80d80f1716e3df20429fc7 Homepage: http://www.openssh.com/ Description-en: secure shell (SSH) sftp server module, for SFTP access from remote machines This is the portable version of OpenSSH, a free implementation of the Secure Shell protocol as specified by the IETF secsh working group.
Ssh (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It provides secure encrypted communications between two untrusted hosts over an insecure network. X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel. It can be used to provide applications with a secure communication channel.
This package provides the SFTP server module for the SSH server. It is needed if you want to access your SSH server with SFTP. The SFTP server module also works with other SSH daemons like dropbear.
OpenSSH’s sftp and sftp-server implement revision 3 of the SSH filexfer protocol described in:
http://www.openssh.com/txt/draft-ietf-secsh-filexfer-02.txt
Newer versions of the draft will not be supported, though some features are individually implemented as extensions. Task: cloud-image, openssh-server, ubuntu-core
There are three methods to install openssh-sftp-server
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install openssh-sftp-server Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install openssh-sftp-server
using apt-get
by running the following command:
sudo apt-get -y install openssh-sftp-server
Install openssh-sftp-server Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install openssh-sftp-server
using apt
by running the following command:
sudo apt -y install openssh-sftp-server
Install openssh-sftp-server Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install openssh-sftp-server
using aptitude
by running the following command:
sudo aptitude -y install openssh-sftp-server
How To Uninstall openssh-sftp-server on Ubuntu 20.04
To uninstall only the openssh-sftp-server
package we can use the following command:
sudo apt-get remove openssh-sftp-server
Uninstall openssh-sftp-server And Its Dependencies
To uninstall openssh-sftp-server
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove openssh-sftp-server
Remove openssh-sftp-server Configurations and Data
To remove openssh-sftp-server
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge openssh-sftp-server
Remove openssh-sftp-server configuration, data, and all of its dependencies
We can use the following command to remove openssh-sftp-server
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge openssh-sftp-server
References
Summary
In this tutorial we learn how to install openssh-sftp-server
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.