How To Install openssh-client on Ubuntu 20.04

In this tutorial we learn how to install openssh-client on Ubuntu 20.04. openssh-client is secure shell (SSH) client, for secure access to remote machines secure shell (SSH) client, for secure access to remote machines

Introduction

In this tutorial we learn how to install openssh-client on Ubuntu 20.04.

What is openssh-client

openssh-client 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 ssh, scp and sftp clients, the ssh-agent and ssh-add programs to make public key authentication more convenient, and the ssh-keygen, ssh-keyscan, ssh-copy-id and ssh-argv0 utilities.

In some countries it may be illegal to use any encryption at all without a special permit.

ssh replaces the insecure rsh, rcp and rlogin programs, which are obsolete for most purposes. Task: standard, ubuntu-core

Package: openssh-client Architecture: amd64 Version: 1:8.2p1-4 Multi-Arch: foreign Priority: standard 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: 4117 Provides: rsh-client, ssh-client Depends: adduser (>= 3.10), dpkg (>= 1.7.0), passwd, libc6 (>= 2.26), libedit2 (>= 2.11-20080614-0), libfido2-1 (>= 1.3.0), libgssapi-krb5-2 (>= 1.17), libselinux1 (>= 1.32), libssl1.1 (>= 1.1.1), zlib1g (>= 1:1.1.4) Recommends: xauth Suggests: keychain, libpam-ssh, monkeysphere, ssh-askpass Conflicts: sftp Breaks: openssh-sk-helper Replaces: openssh-sk-helper, ssh, ssh-krb5 Filename: pool/main/o/openssh/openssh-client_8.2p1-4_amd64.deb Size: 673724 MD5sum: 5b8f0a1258a1c786d4dc62f906655161 SHA1: fd2537ec36fa1757a708bcb2796dbf8193ecb1dd SHA256: 5f127263d051f43c5d21adda2e5fa19d4a92c56e1c4df07f9b9c057fbbf60b8c Homepage: http://www.openssh.com/ Description-en: secure shell (SSH) client, for secure access to 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 ssh, scp and sftp clients, the ssh-agent and ssh-add programs to make public key authentication more convenient, and the ssh-keygen, ssh-keyscan, ssh-copy-id and ssh-argv0 utilities.

In some countries it may be illegal to use any encryption at all without a special permit.

ssh replaces the insecure rsh, rcp and rlogin programs, which are obsolete for most purposes. Task: standard, ubuntu-core

There are three methods to install openssh-client 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-client 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-client using apt-get by running the following command:

sudo apt-get -y install openssh-client

Install openssh-client Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install openssh-client using apt by running the following command:

sudo apt -y install openssh-client

Install openssh-client 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-client using aptitude by running the following command:

sudo aptitude -y install openssh-client

How To Uninstall openssh-client on Ubuntu 20.04

To uninstall only the openssh-client package we can use the following command:

sudo apt-get remove openssh-client

Uninstall openssh-client And Its Dependencies

To uninstall openssh-client and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove openssh-client

Remove openssh-client Configurations and Data

To remove openssh-client configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge openssh-client

Remove openssh-client configuration, data, and all of its dependencies

We can use the following command to remove openssh-client configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge openssh-client

References

Summary

In this tutorial we learn how to install openssh-client package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.