Product SiteDocumentation Site

8.2.2. Starting an OpenSSH Server

Make sure you have relevant packages installed

To run an OpenSSH server, you must have the openssh-server and openssh packages installed. See Section 5.2.4, “Installing Packages” for more information on how to install new packages in Fedora.
To start the sshd daemon, type the following at a shell prompt:
systemctl start sshd.service
To stop the running sshd daemon, use the following command:
systemctl stop sshd.service
If you want the daemon to start automatically at the boot time, type:
systemctl enable sshd.service
See Chapter 6, Services and Daemons for more information on how to configure services in Fedora.
Note that if you reinstall the system, a new set of identification keys will be created. As a result, clients who had connected to the system with any of the OpenSSH tools before the reinstall will see the following message:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
To prevent this, you can back up the relevant files from the /etc/ssh/ directory (see Table 8.1, “System-wide configuration files” for a complete list), and restore them whenever you reinstall the system.