Home >Common Problem >What is the ssh port number?
The default port number for SSH is 22 because it was originally an unused port and later became a convention and security consideration. Modifying the SSH port number can help enhance security and prevent automatic scanning and attacks. Additionally, taking additional security measures, such as enabling firewalls and key authentication, is critical to protecting your SSH service.
SSH port number
SSH (Secure Shell) is an encryption protocol used in insecure Provides secure communications over a network, such as the Internet. Its default port number is 22.
Why 22?
SSH port is assigned 22 for several reasons:
Modification of the port number
Although 22 is the default port for SSH, for security reasons, it is recommended to modify the SSH port number. This can be done by setting the "Port" option in the SSH configuration file. Changing the port number can make it more difficult for attackers to automatically scan and attack your SSH service.
Other Notes
The above is the detailed content of What is the ssh port number?. For more information, please follow other related articles on the PHP Chinese website!