Usually ssh telnet to the default port is 22, this port is generally can be changed or added, the configuration file location in:/etc/ssh/sshd_config by editing the file can modify the SSHD service related configuration, the following new Port 2223, That is, in addition to 22 port can log on to the server outside 2223 can also log in
Execute command vim/etc/ssh/sshd_config Edit configuration file
You can see that the default port is 22 and comment, then remove the comment and add a new line to Port 2223 and then save and exit
Now restart the SSH service: systemctl restart Sshd.service
After rebooting, use the original 22 and 2223 ports can be connected, when not the default port, you need to use ssh -P 2223 hostname to connect, where hostname is the host name, Here SSH multi-port login is configured to complete
Add or modify ports for the SSH service