Page 1 of 1
ssh login not working
Posted: Fri Jan 13, 2023 7:51 pm
by mister_v
After an update of the sshd deamon.
I cant login.
Code: Select all
Connection reset by 192.168.1.1 port 23
I tried a restart of the server,
but it didn't work.
Anyone knows what to do ?
Re: ssh login not working
Posted: Fri Jan 13, 2023 8:31 pm
by Chris
sounds to me, you have a problem with the config file
Or perhaps it is not compatible with the new version of ssh-daemon.
Check your logs.
Re: ssh login not working
Posted: Sun Jan 22, 2023 1:40 pm
by mister_v
I check for /var/log/auth.log (doesn't exist for me)
and /var/log/messages -> not much info
So I adapted the /etc/ssh/sshd_config -file to be more verbose.
LogLevel DEBUG3
That gave me some more info:
Code: Select all
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
and here I'm stuck, because it should work with ssh-rsa...
Re: ssh login not working
Posted: Sun Jan 22, 2023 1:40 pm
by mister_v
I tried with adding this line in /etc/ssh/sshd_config.
Did not change...
Re: ssh login not working
Posted: Sun Jan 22, 2023 4:31 pm
by mister_v
Tried setting in /etc/ssh/ssh_config in both server and host.
Code: Select all
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Still not good.
Tried using latest version from putty, still same error.
Re: ssh login not working
Posted: Sat Apr 01, 2023 10:47 am
by mister_v
after a few tries,
I found another errors message :
Code: Select all
sshd[26151]: debug1: permanently_set_uid: 22/22 [preauth]
sshd[26151]: debug3: ssh_sandbox_child: setting PR_SET_NO_NEW_PRIVS [preauth]
sshd[26151]: debug3: ssh_sandbox_child: attaching seccomp filter program [preauth]
sshd[26151]: debug1: ssh_sandbox_child: prctl(PR_SET_SECCOMP): Invalid argument [preauth]
I think the problem is that the kernel is to old.
3.16.1 . I have been lazy with the updates...