How to SSH on a port other than 22


If you are on Linux system and you want connect to an SSH server on port 26 you can use the following command.

ssh [email protected] -p PORT

Note:
  • Replace server IP with the IP Address or DNS name of your server.
  • Change your port number as you have set.
  • If you are using custom port SSH then same port most be allowed for outbound, inbound connection on firewall otherwise the connection will not establish

Nhận xét

Bài đăng phổ biến từ blog này

Fix: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

Restrict SSH to one IP on VPS with firewalld