How to Install and Uninstall openssh-server Package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Last updated: April 29,2024

1. Install "openssh-server" package

This guide covers the steps necessary to install openssh-server on Ubuntu 22.04 LTS (Jammy Jellyfish)

$ sudo apt update $ sudo apt install openssh-server

2. Uninstall "openssh-server" package

Please follow the guidance below to uninstall openssh-server on Ubuntu 22.04 LTS (Jammy Jellyfish):

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

3. Information about the openssh-server package on Ubuntu 22.04 LTS (Jammy Jellyfish)

Package: openssh-server
Architecture: amd64
Version: 1:8.9p1-3ubuntu0.6
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: 1505
Provides: ssh-server
Pre-Depends: init-system-helpers (>= 1.54~)
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.9p1-3ubuntu0.6), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.34), 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 (>= 3.1~), libssl3 (>= 3.0.2), 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.9p1-3ubuntu0.6_amd64.deb
Size: 435336
MD5sum: f02c35073f33ee23b2d662bfb1b22916
SHA1: e680b0bec5ce32aa890124df080613528467ba8f
SHA256: 00f2fddab31144c32d28155ebf911050425ead47372aab94a5f7d5ed069ca417
SHA512: ef765f6a04b3fb5337842841746b647a2216e39d4ff438596c6d9d102f5f27eee381c63026c1a6c16bac4436099896ad8f8316ee2cbd86df9c201bc53fd389e2
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: cloud-image, openssh-server

Package: openssh-server
Architecture: amd64
Version: 1:8.9p1-3
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: 1501
Provides: ssh-server
Pre-Depends: init-system-helpers (>= 1.54~)
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.9p1-3), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.34), 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 (>= 3.1~), libssl3 (>= 3.0.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.9p1-3_amd64.deb
Size: 434398
MD5sum: 6573e8afd252817d276f333e94ec5dfe
SHA1: 753dd2bcb18a50a9a4526283ca44d81799f29ace
SHA256: 1e1d83c5325f1379b199990619827778209ad1f0994505fd8e27016e1527e525
SHA512: b63ab280ed8817ecaa5715e631ec4c130ac454bc118cadcc0401f04727e716d755ad6b78e52c2e26984a96286f0757892560f792d6350077f246f41d39c48087
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: cloud-image, openssh-server