How To Install openssh-server-sysvinit.x86_64 on Amazon Linux 2

In this tutorial we learn how to install openssh-server-sysvinit.x86_64 in Amazon Linux 2. openssh-server-sysvinit.x86_64 is The SysV initscript to manage the OpenSSH server.

Introduction

In this tutorial we learn how to install openssh-server-sysvinit.x86_64 on Amazon Linux 2.

What is openssh-server-sysvinit.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 SysV init script to manage the OpenSSH server when running a legacy SysV-compatible init system. It is not required when the init system used is systemd.

We can use yum to install openssh-server-sysvinit.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-sysvinit.x86_64.

Install openssh-server-sysvinit.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-sysvinit.x86_64 using yum by running the following command:

sudo yum -y install openssh-server-sysvinit.x86_64

How To Uninstall openssh-server-sysvinit.x86_64 on Amazon Linux 2

To uninstall only the openssh-server-sysvinit.x86_64 package we can use the following command:

sudo yum remove openssh-server-sysvinit.x86_64

openssh-server-sysvinit.x86_64 Package Contents on Amazon Linux 2

/etc/rc.d/init.d/sshd

References

Summary

In this tutorial we learn how to install openssh-server-sysvinit.x86_64 on Amazon Linux 2 using yum.