Linux - SSH basic security setting

edit sshd config file
# vi /etc/ssh/sshd_config
Add the lines :
AllowUsers [userloginname]
PermitRootLogin no
PermitEmptyPasswords no
PasswordAuthentication yes
MaxAuthTries 5

restart ssh
# service sshd restart

Use pam_access to restrict SSH connection

Comments