Create a gist now

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 pam_unix.so module in auth facility nullok argument. The line will look like:

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