How To Install openssh-server.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install openssh-server.x86_64 on Amazon Linux 2.
What is openssh-server.x86_64
OpenSSH is a free version of SSH (Secure SHell), a program for logging into and executing commands on a remote machine. This package contains the secure shell daemon (sshd). The sshd daemon allows SSH clients to securely connect to your SSH server.
We can use yum to install openssh-server.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install openssh-server.x86_64.
Install openssh-server.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install openssh-server.x86_64 using yum by running the following command:
sudo yum -y install openssh-server.x86_64
How To Uninstall openssh-server.x86_64 on Amazon Linux 2
To uninstall only the openssh-server.x86_64 package we can use the following command:
sudo yum remove openssh-server.x86_64
openssh-server.x86_64 Package Contents on Amazon Linux 2
/etc/pam.d/sshd
/etc/ssh/sshd_config
/etc/sysconfig/sshd
/usr/lib/systemd/system/sshd-keygen.service
/usr/lib/systemd/system/sshd.service
/usr/lib/systemd/system/sshd.socket
/usr/lib/systemd/system/[email protected]
/usr/lib64/fipscheck/sshd.hmac
/usr/libexec/openssh/sftp-server
/usr/sbin/sshd
/usr/sbin/sshd-keygen
/usr/share/man/man5/moduli.5.gz
/usr/share/man/man5/sshd_config.5.gz
/usr/share/man/man8/sftp-server.8.gz
/usr/share/man/man8/sshd.8.gz
/var/empty/sshd
References
Summary
In this tutorial we learn how to install openssh-server.x86_64 on Amazon Linux 2 using yum.