SSH default port number

SSH default port number

The default TCP port for SSH is 22.

Changing the SSH port in the server

The port number can be configured by changing the Port 22 directive in /etc/ssh/sshd_config. It can also be specified using the -p  option to sshd. The SSH client and sftp programs also support the -p  option.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 6897