The configuration file for the OpenSSH daemon is
/etc/ssh/sshd_config (not to be confused with
/etc/ssh/ssh_config which is
the SSH client configuration file).
After modifying the configuration file the server needs to be restarted to take into account the configuration changes. The way to restart the SSH server depends on the particular OS you are using. We show the way for a few popular OSes below.
- Red Hat:
service sshd restart
sudo service ssh restart(note that
sudo service sshd restartalso seems to work although the service is named ssh on Ubuntu)
One of the most important aspects of SSH is how the client authenticates to the server.