Run SSH on multiple ports

You can make your SSH server to run on multiple ports by adding more of the Port options in your SSHd the configuration file.

For example, having these lines in /etc/ssh/sshd_config will make the SSH server to run on both port 22 and 2222.

Port 22
Port 2222

You'll need to reboot your SSH server after making the change.

Sign up for Complete Secure Shell Course and many other great courses on Udemy to learn more.

Complete Secure Shell Course

This course is made for Linux admins who seek to secure their Linux work environment by mastering Linux SSH security!

Written by Mohd Shakir Zakaria. Last updated on 2019-02-12