I'm trying to configure my server to disable password authentication, I'm using keys now.
The problem is that PasswordAuthentication no is set, but it has had no effect. I'm still prompted for a password even though that's set.
More details:
- I'm connecting to Ubuntu Server 14.04 from PuTTY on Windows 10.
ssh -vshows uses my key first then keyboard-interactive second.- I made sure I edited
sshd_config, notssh_config. - I restarted the
sshafter applying the changes, when that had no effect I restarted the whole server, still no effect. - I have this exact same config file on another 14.04 server with this exact same key, but it has no issues and password auth is disabled there.
Why isn't password auth disabled as it should be, and how can I fix it?
This is the entire sshd_config file minus all commented lines for brevity.
Port 612
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
KexAlgorithms curve25519-sha256@libssh.org,diffie-hellman-group-exchange-sha256,diffie-hellman-group1-sha1
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,umac-128@openssh.com
UsePrivilegeSeparation yes
KeyRegenerationInterval 3600
ServerKeyBits 1024
SyslogFacility AUTH
LogLevel INFO
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
PermitEmptyPasswords no
PasswordAuthentication no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes