Linux Security Minor - Restrict remote root login

  
        

Linux modify ssh port 22

vi /etc/ssh/ssh_config

vi /etc/ssh/sshd_config

Then change to port 8888

as root service sshd restart (redhat as3)

Using putty, port 8888

The default port for SSH under Linux is 22. For security reasons, the port of SSH is modified to be 1433, modified. The method is as follows:


/usr/sbin/sshd -p 1433


Adding a normal permission for enhanced security

User:

#useradd uploader

#passwd uploader

//Set password


Production machine prohibits ROOT remote SSH login :

#vi /etc/ssh/sshd_config


Change

PermitRootLogin yes

to

PermitRootLogin no

Restart sshd service

#service sshd restart


Remote management log in with normal user uploader, then use su root to switch to root user To the highest authority


-----------

Reprinted from: http://www.jb51.net/os/RedHat/1068 .html

Copyright © Windows knowledge All Rights Reserved