Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ssh root without password on FreeBSD.

ssh root without password on FreeBSD

If you have some toy boards in your internal network, then you can happily live without password and key. As I learned today, setting following stuff in /etc/ssh/sshd_config is not enough:

PermitRootLogin yes
PermitEmptyPasswords yes

You have to edit /etc/pam.d/sshd too and append to module in auth facility nullok argument. The line will look like:

auth            required             no_warn try_first_pass nullok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment