Linux Modify SSH Port 22
Vi/etc/ssh/ssh_config
Vi/etc/ssh/sshd_config
And then modify it to port 8888.
Service sshd Restart as root (Redhat AS3)
Using putty, Port 8888
Linux under the default SSH port is 22, for security purposes, now modify the SSH port is 1433, modify the method as follows:
/usr/sbin/sshd-p 1433
To enhance security
First, add a user with normal permissions:
#useradd Uploader
#passwd Uploader
Set Password
The production machine prohibits root remote SSH login:
#vi/etc/ssh/sshd_config
Put
Permitrootlogin Yes
Switch
Permitrootlogin No
Restarting the SSHD service
#service sshd Restart
Remote Management log in with normal user uploader, then switch to root user with Su root to get the highest privileges
Linux system root user is omnipotent, in order to system security SSH prohibit root user telnet, if necessary, using the sudo mechanism is also a good choice
Edit/etc/ssh/sshd_config
Modify Permitrootlogin to change Yes to No
Restart the SSH service
Service sshd Restart or
/etc/init.d/sshd restart
Disable root user remote login