The following are examples of configuration directives you may change:
• To set your OpenSSH to listen on TCP port 2222 instead of the default TCP port 22, change the
Port directive as such:
Port 2222
• To have sshd allow public key-based login credentials, simply add or modify the line:
PubkeyAuthentication yes
in the /etc/ssh/sshd_config file, or if already present, ensure the line is not commented out.
• To make your OpenSSH server display the contents of the /etc/issue.net file as a pre-login
banner, simply add or modify the line:
Banner /etc/issue.net
in the /etc/ssh/sshd_config file.
After making changes to the /etc/ssh/sshd_config file, save the file, and restart the sshd server
application to effect the changes using the following command at a terminal prompt