Change port number in ssh (OpenSuSE 12.2)
for security reason, u may want to change your default ssh port number 22 to some other port.
Step 1: as root, go to /etc/ssh and edit file "sshd_config". change the following line:
#Port 22 % default port
Port 1234 % new port
Step 2: reload configuration file, by doing a "rcsshd restart" or "rcsshd reload".
Step 3: make sure new port is allowable in firewall setting. use YaST, go to "firewall", "Allowed Services", make sure "Secure Shell Server" is added, then click "Advanced", and add your new port number "1234" to TCP.
0 件のコメント:
コメントを投稿