I'm running the latest Raspbian image on a Model B. I attempted to create a null password by using passwd -d
, blanking the password field for the user in /etc/shadow
, and setting PermitEmptyPasswords yes
in /etc/ssh/sshd_config
. This allows me password-less login over tty, but not ssh.
When I try to connect via SSH, I get the following in my auth.log
:
sshd[8351]: Failed password for root from [my ip] port 49861 ssh2
I read that when OpenSSH is using PAM, you have to add "nullok" to the auth line in /etc/pam.d/sshd
, so I amended mine as follows:
auth required pam_env.so nullok
auth required pam_env.so envfile=/etc/default/locale nullok
But then I just get this in auth.log
:
sshd[4418]: pam_env(sshd:setcred): unknown option: nullok
Now, I'm well aware of the security risks of this, but this Raspberry Pi is going to live on a local switch that will never be connected to a public network. I know I could set up private key login, but I'd rather not have to add each device's public key if I can avoid it. Is there any way to get null passwords working on this distro? I'm not too familiar with it, other than that it's Debian-based.
Edit to add: I also have PermitRootLogin yes
set, and can login to this account when it has a non-blank password set, so it's not the fact that I'm trying to log into the root account. I tried making a different account, and I still get "failed password for ..."