Installing OpenSSH Server and Enabling sshd

A default Oracle Linux installation includes the openssh and openssh-server packages, but the sshd service isn't enabled by default.

  1. If the packages aren't installed, run the following command:

    sudo dnf install openssh openssh-server
  2. Start the sshd service and configure it to start following a system reboot:

    sudo systemctl start sshd
    sudo systemctl enable sshd

You can set sshd configuration options for features such as Kerberos authentication, X11 forwarding, and port forwarding in the /etc/ssh/sshd_config file. For more information, see the sshd(8) and sshd_config(5) manual pages.