Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 2901

Beginners Questions • PubkeyAuthentication no longer works

$
0
0
hello,
I can't use PubkeyAuthentication anymore and I can't figure out why.

Code:

~$ ssh -v  xxx@yyyy..........debug1: Authentications that can continue: publickey,password,keyboard-interactivedebug1: Trying private key: /home/mm/.ssh/id_ecdsa_skdebug1: Trying private key: /home/mm/.ssh/id_ed25519debug1: Trying private key: /home/mm/.ssh/id_ed25519_skdebug1: Trying private key: /home/mm/.ssh/id_xmssdebug1: Next authentication method: keyboard-interactivedebug1: Authentications that can continue: publickey,password,keyboard-interactivedebug1: Next authentication method: passwordxxx@yyyy's password:

1- my config file is in the /etc/ssh/sshd_config.d/ repertory
2- all the lines in /etc/ssh/sshd_config are commented except Include /etc/lightdm/lightdm__config.d/*.conf
3- here is my /sshd_config.d/sshd.conf file

I
nclude /etc/lightdm/lightdm__config.d/*.conf
#38
LoginGraceTime 1m
PermitRootLogin no
#41
MaxAuthTries 4
MaxSessions 4
#44
PubkeyAuthentication yes
#55
HostbasedAuthentication no
#58
IgnoreUserKnownHosts yes
#60
IgnoreRhosts yes
#64
PermitEmptyPasswords no
#68
KbdInteractiveAuthentication no
#91
UsePAM no
#96
X11Forwarding no
#100
PrintMotd no
#103
PermitUserEnvironment no
#105
ClientAliveInterval 300
ClientAliveCountMax 0
#109
MaxStartups 10:30:60
#115
Banner /etc/issue.net
#118
AcceptEnv LANG LC_*
#121
Subsystem sftp /usr/lib/openssh/sftp-server
#129
AllowUsers xx1 xx2
what should I check next?

Statistics: Posted by mazda1 — 2024-09-01 19:55



Viewing all articles
Browse latest Browse all 2901

Trending Articles