Hi @ackema , I can not confirm that ssh password login does not work on the latest 1.4 rolling even with this param PasswordAuthentication no in /run/sshd/sshd_config.
When I set set service ssh disable-password-authentication my laptop CLI return
vyos@vyos# delete service ssh disable-password-authentication
[edit]
vyos@vyos# commit
I can log in from my laptop to this router
MacBook-Pro-Dmitriy:~ dmitriy$ ssh vyos@192.0.2.1
Password:
Welcome to VyOS!
Check out project news at https://blog.vyos.io
and feel free to report bugs at https://phabricator.vyos.net
You can change this banner using "set system login banner post-login" command.
VyOS is a free software distribution that includes multiple components,
you can check individual component licenses under /usr/share/doc/*/copyright
Last login: Fri Dec 9 07:39:00 2022 from x.x.x.x
vyos@vyos:~$
when you exec “delete service ssh disable-password-authentication” and “commit”, what’s the value of param PasswordAuthentication in /run/sshd/sshd_config?
PasswordAuthentication
Specifies whether password authentication is allowed. See also
UsePAM. The default is no.
Following is my sshd_config
vyos@vyos# cat /var/run/sshd/sshd_config
### Autogenerated by ssh.py ###
# https://linux.die.net/man/5/sshd_config
#
# Non-configurable defaults
#
Protocol 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
SyslogFacility AUTH
LoginGraceTime 120
StrictModes yes
PubkeyAuthentication yes
IgnoreRhosts yes
HostbasedAuthentication no
PermitEmptyPasswords no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
Banner /etc/issue.net
Subsystem sftp /usr/lib/openssh/sftp-server
UsePAM yes
PermitRootLogin no
PidFile /run/sshd/sshd.pid
AddressFamily any
DebianBanner no
PasswordAuthentication no
#
# User configurable section
#
# Look up remote host name and check that the resolved host name for the remote IP
# address maps back to the very same IP address.
UseDNS yes
# Specifies the port number that sshd(8) listens on
Port 22
# Gives the verbosity level that is used when logging messages from sshd
LogLevel INFO
# Specifies whether password authentication is allowed
ChallengeResponseAuthentication yes
[edit]
vyos@vyos#
and openssh-server version info:
root@vyos:/home/vyos# apt info openssh-server
Package: openssh-server
Version: 1:8.4p1-5+deb11u1
Status: install ok installed
Priority: optional
disable-password-authentication param add ChallengeResponseAuthentication to config
From man
ChallengeResponseAuthentication
Specifies whether challenge-response authentication is allowed (e.g. via PAM or though authentication styles supported in login.conf(5)) The default is ''yes''.
It does not work for you when key auth configured for user?