Mohammedz.com

For Linux and Shell scripting.

Handling with Empty Passwords and Password Authentication

Leave a comment


Turn off PasswordAuthentication and PermitEmptyPasswords in the SSH configuration file /etc/ssh/sshd_config. This will ensure that users cannot set empty passwords or login without SSH keys.

PermitEmptyPasswords no
PasswordAuthentication no

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s