Article title: Linux modifies SSH ports and disables remote Root login. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Modify ssh port 22 in Linux
Vi/etc/ssh/ssh_config
Vi/etc/ssh/sshd_config
Then, change the value to port 8888.
Service sshd restart (redhat as3) as root)
Use putty, port 8888
In Linux, the default SSH port is 22. for security reasons, modify the SSH port to 1433 as follows:
/Usr/sbin/sshd-p 1433
To enhance security
First, add a user with normal permissions:
# Useradd uploader
# Passwd uploader
// Set the password
The production machine prohibits ROOT remote SSH login:
# Vi/etc/ssh/sshd_config
Set
PermitRootLogin yes
Change
PermitRootLogin no
Restart sshd service
# Service sshd restart
For remote management, use uploader as the common user to log on, and then use su root to switch to the root user to obtain the highest permission.