SSH connection can remotely manage devices such as Linux, the default LINUXSSH port is 22 port, How to modify the SSH default port, how to increase the SSH port? , let me show you a little bit
Tools/Materials
- Xshell Putty and other Remote Tools Linux systems
What is SSH?
- 1
SSH to Secure Shell
Developed by the network Working Group of the IETF (Working Group);
SSH is a security protocol based on the application layer and the transport layer.
SSH transmission data is encrypted , can effectively prevent the transmission process is intercepted data security.
SSH data is compressed , so it can speed up the transfer
END
View SSH Services
- 1
First look at whether the current Linux installed SSH software package, using Rpm-qa|grep SSH
- 2
2. Verify that the SSH service is turned on, and the following is a sample of the CentOS system
- 3
3. Find the SSH service profile path is generally under/etc/ssh This directory sshd_config this file
END
Edit Modify SSH port number
1. Using the VI \vim Editor, open sshd_config This file, search to find the Port field. Such as
2 position the cursor to port 22 this line YY then keyboard p copy a line, insert Insert edit 22 Port 2222
3 after Setup, for example, Wq save to exit, indicating that a 2222 port number has been added.
4. After setting up, of course, you need to restart the SSH service.
5. If you have a firewall set up, modify the Add Firewall rule, or just close the firewall.
END
Precautions
- SSH port default is 22, if you want to modify the direct edit 22 Port Note the previous "#" to remove, and then save the restart
- If you increase the port number, just follow the small way, add a port to
What is SSH? How does Linux modify the SSH port number?