Skip to main content

Limit ssh root login to key authentification

Category: Linux
linux-logo

By default the root user is permitted to login by using password when connecting via ssh. After checking my fail2Ban-Log I always get the feeling, that it absolutely makes sense to deactivate this authentification type.

To do so simply edit /etc/ssh/sshd_config:

#PermitRootLogin yes
PermitRootLogin without-password

After restarting the demon root needs to authentify using ssh-keys.

service sshd restart

 

Monthly archive

Categories

Debian (2)

Git (4)

Jira (1)

jQuery (1)

Linux (2)

MySQL (1)

PHP (1)