How to Install and Uninstall openssh-server Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 22,2024

1. Install "openssh-server" package

This guide covers the steps necessary to install openssh-server on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install openssh-server

2. Uninstall "openssh-server" package

This guide covers the steps necessary to uninstall openssh-server on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove openssh-server $ sudo apt autoclean && sudo apt autoremove

3. Information about the openssh-server package on Ubuntu 20.04 LTS (Focal Fossa)

Package: openssh-server
Architecture: amd64
Version: 1:8.2p1-4ubuntu0.11
Multi-Arch: foreign
Priority: optional
Section: net
Source: openssh
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian OpenSSH Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1499
Provides: ssh-server
Depends: adduser (>= 3.9), dpkg (>= 1.9.0), libpam-modules (>= 0.72-9), libpam-runtime (>= 0.76-14), lsb-base (>= 4.1+Debian3), openssh-client (= 1:8.2p1-4ubuntu0.11), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.26), libcom-err2 (>= 1.43.9), libcrypt1 (>= 1:4.1.0), libgssapi-krb5-2 (>= 1.17), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.1 (>= 1.1.1), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4)
Recommends: default-logind | logind | libpam-systemd, ncurses-term, xauth, ssh-import-id
Suggests: molly-guard, monkeysphere, ssh-askpass, ufw
Conflicts: sftp, ssh-socks, ssh2
Replaces: openssh-client (<< 1:7.9p1-8), ssh, ssh-krb5
Filename: pool/main/o/openssh/openssh-server_8.2p1-4ubuntu0.11_amd64.deb
Size: 377884
MD5sum: c6a6ecd0483678f31f01019df24224c8
SHA1: 8162bb089b01bb5bb0250080d50e99c0aad17ea2
SHA256: d69903401ddcbcb7737e5bb9300e85b098aad5ab904aef30535de6afa0edb228
SHA512: 0a347b8e8e3a69adf0153264a31ad44b10e1ffe6bea9b947d3ea71e7678a98237f8eb4df4e3bb8309f385621e6d563281f8b7d282c4b919b65a1755bed0ab92b
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: cloud-image, openssh-server, ubuntu-core

Package: openssh-server
Architecture: amd64
Version: 1:8.2p1-4
Multi-Arch: foreign
Priority: optional
Section: net
Source: openssh
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian OpenSSH Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1491
Provides: ssh-server
Depends: adduser (>= 3.9), dpkg (>= 1.9.0), libpam-modules (>= 0.72-9), libpam-runtime (>= 0.76-14), lsb-base (>= 4.1+Debian3), openssh-client (= 1:8.2p1-4), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.26), libcom-err2 (>= 1.43.9), libgssapi-krb5-2 (>= 1.17), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.1 (>= 1.1.1), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4)
Recommends: default-logind | logind | libpam-systemd, ncurses-term, xauth, ssh-import-id
Suggests: molly-guard, monkeysphere, ssh-askpass, ufw
Conflicts: sftp, ssh-socks, ssh2
Replaces: openssh-client (<< 1:7.9p1-8), ssh, ssh-krb5
Filename: pool/main/o/openssh/openssh-server_8.2p1-4_amd64.deb
Size: 376932
MD5sum: 132fbd7dd7db8d767788c2ef41c72ea6
SHA1: c6aebb395e656aaf54931cc1bcb6821eeb2b9873
SHA256: bdbe3a79ee6430e8f3899c0a159535abe3d0e54365f70afdc547cd00a574634b
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: cloud-image, openssh-server, ubuntu-core