How to Install and Uninstall openssh-server Package on Ubuntu 18.04 LTS (Bionic Beaver)

Last updated: November 26,2024

1. Install "openssh-server" package

Please follow the steps below to install openssh-server on Ubuntu 18.04 LTS (Bionic Beaver)

$ sudo apt update $ sudo apt install openssh-server

2. Uninstall "openssh-server" package

This is a short guide on how to uninstall openssh-server on Ubuntu 18.04 LTS (Bionic Beaver):

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

3. Information about the openssh-server package on Ubuntu 18.04 LTS (Bionic Beaver)

Package: openssh-server
Architecture: amd64
Version: 1:7.6p1-4ubuntu0.7
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: 881
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:7.6p1-4ubuntu0.7), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.26), libcom-err2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.2), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4)
Recommends: libpam-systemd, ncurses-term, xauth, ssh-import-id
Suggests: molly-guard, monkeysphere, rssh, ssh-askpass, ufw
Conflicts: sftp, ssh-socks, ssh2
Replaces: ssh, ssh-krb5
Filename: pool/main/o/openssh/openssh-server_7.6p1-4ubuntu0.7_amd64.deb
Size: 332232
MD5sum: 38138880aca4b526a0a271ee694f7337
SHA1: 8659d0eaf0368860baf3c8607df159da95e20bbb
SHA256: 6fc22ccafc3f26b07f9f34825496c60f180f25fd93687461be05c1fb460ea9ad
SHA512: f15910b5ffbb9437873c7ca6c7fc2bd26075ecb7803fad523ac494f2865b51fb152baa2df8d2da5209be6d6e004ddc95cfbd8f8c3e734f95eafd87155d7bebaa
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: ubuntu-core, cloud-image, openssh-server
Supported: 5y

Package: openssh-server
Architecture: amd64
Version: 1:7.6p1-4ubuntu0.5
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: 881
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:7.6p1-4ubuntu0.5), openssh-sftp-server, procps, ucf (>= 0.28), debconf (>= 0.5) | debconf-2.0, libaudit1 (>= 1:2.2.1), libc6 (>= 2.26), libcom-err2 (>= 1.01), libgssapi-krb5-2 (>= 1.14+dfsg), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.2), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4)
Recommends: libpam-systemd, ncurses-term, xauth, ssh-import-id
Suggests: molly-guard, monkeysphere, rssh, ssh-askpass, ufw
Conflicts: sftp, ssh-socks, ssh2
Replaces: ssh, ssh-krb5
Filename: pool/main/o/openssh/openssh-server_7.6p1-4ubuntu0.5_amd64.deb
Size: 332356
MD5sum: f431b0ae3635528157a700ea1b9b76a4
SHA1: 46124718358d2a76d74c45a2a63ae5c6f3cd4549
SHA256: 9b27145a22ea9544be6018b4afb59ae6b837bc51a9f810f9b917346be6ca559a
SHA512: 4da266146bd531a58cb6de85f3ceb3ec62498ff0095407d43a1f87a9a1104026789cda16d9d517abdc7c7cb11975ff3fcef8ec68281c9626fd7e9edf60a10259
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: ubuntu-core, cloud-image, openssh-server
Supported: 5y

Package: openssh-server
Architecture: amd64
Version: 1:7.6p1-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: 877
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:7.6p1-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.01), libgssapi-krb5-2 (>= 1.14+dfsg), libkrb5-3 (>= 1.13~alpha1+dfsg), libpam0g (>= 0.99.7.1), libselinux1 (>= 1.32), libssl1.0.0 (>= 1.0.2), libsystemd0, libwrap0 (>= 7.6-4~), zlib1g (>= 1:1.1.4)
Recommends: libpam-systemd, ncurses-term, xauth, ssh-import-id
Suggests: molly-guard, monkeysphere, rssh, ssh-askpass, ufw
Conflicts: sftp, ssh-socks, ssh2
Replaces: ssh, ssh-krb5
Filename: pool/main/o/openssh/openssh-server_7.6p1-4_amd64.deb
Size: 332368
MD5sum: d762d3d945c58311dfe5db9fbc952f15
SHA1: d8d4f56ae3d6783e27693b40eaf0c8e21163141d
SHA256: 39aa698589cb6637f2d6b97a96f47b73762d2b90204b047fdd91d09cb867f617
Homepage: http://www.openssh.com/
Description: secure shell (SSH) server, for secure access from remote machines
Description-md5: 842cc998cae371b9d8106c1696373919
Task: ubuntu-core, cloud-image, openssh-server
Supported: 5y