Re: [gentoo-user] disable password login for ssh

2025-04-05 Thread Peter Humphrey
On Thursday, 20 March 2025 19:03:49 Greenwich Mean Time ralfconn wrote: > maybe it is documented somewhere and I missed it, but to disable > password login on an ssh server it is not sufficient to specify > UsePAM=no (which is the default) in /etc/ssh/sshd_config because it is > enabled by the /et

Re: [gentoo-user] disable password login for ssh

2025-03-22 Thread Nate Eldredge
Oh, actually, I think I see the issue. I think it's that PAM authentication, including via password, will be allowed if *either* of PasswordAuthentication or KbdInteractiveAuthentication are enabled. My other box already had "KbdInteractiveAuthentication no". > On Mar 22, 2025, at 18:50, Nate

Re: [gentoo-user] disable password login for ssh

2025-03-22 Thread Alexis
ralfconn writes: Setting "PasswordAuthentication no" is not sufficient. If you fail key authentication e.g. by pressing at the passphrase prompt you'll be prompted for the password unless you do the above. That's controlled by the AuthenticationMethods parameter, which has a default value

Re: [gentoo-user] disable password login for ssh

2025-03-22 Thread Nate Eldredge
On my Ubuntu box, which also doesn't have AuthenticationMethods set in sshd_config, simply setting "PasswordAuthentication no" does in fact prevent password login. Moreover, the stock sshd_config has a comment above the PasswordAuthentication option saying "To disable tunneled clear text passwo

Re: [gentoo-user] disable password login for ssh

2025-03-22 Thread ralfconn
Il 21/03/25 00:50, Peter Humphrey ha scritto: On Thursday, 20 March 2025 19:03:49 Greenwich Mean Time ralfconn wrote: maybe it is documented somewhere and I missed it, but to disable password login on an ssh server it is not sufficient to specify UsePAM=no (which is the default) in /etc/ssh/ssh

[gentoo-user] disable password login for ssh

2025-03-20 Thread ralfconn
Hello, maybe it is documented somewhere and I missed it, but to disable password login on an ssh server it is not sufficient to specify UsePAM=no (which is the default) in /etc/ssh/sshd_config because it is enabled by the /etc/ssh/sshd_config.d/999gentoo-pam.conf, so you need to comment o