NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Here you can report bugs found in Far Manager.
Post Reply
zb!
Posts: 20
Joined: Wed 26 Aug, 2009 15:20
Has thanked: 4 times
Been thanked: 4 times

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by zb! »

Hi guys,

just wanted to note this: I've updated an Ubuntu machine to which I was regularly NetBox'ing to to version 22.04:
$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="Ubuntu 22.04.1 LTS"

With this update, I lost the ability to use NetBox for this host, the key exchange fails:
. 2022-11-23 16:48:55.145 Pageant is running. Requesting keys. . 2022-11-23 16:48:55.146 Pageant has 2 SSH-2 keys . 2022-11-23 16:48:55.153 Server offered these authentication methods: publickey,password . 2022-11-23 16:48:55.153 Trying Pageant key #0 . 2022-11-23 16:48:55.161 Server refused our key . 2022-11-23 16:48:55.161 Server offered these authentication methods: publickey,password . 2022-11-23 16:48:55.161 Trying Pageant key #1 . 2022-11-23 16:48:55.169 Server refused our key . 2022-11-23 16:48:55.169 Server offered these authentication methods: publickey,password . 2022-11-23 16:48:55.169 Prompt (password, "SSH password", <no instructions>, "&Password: ") . 2022-11-23 16:48:55.785 Disconnected: Unable to authenticate * 2022-11-23 16:48:55.787 * 2022-11-23 16:48:55.787 Authentication failed.

It looks like it's this issue, which means upgrading the WinSCP dependency to 5.20 will probably solve this.
Last edited by zb! on Wed 23 Nov, 2022 17:18, edited 1 time in total.
User avatar
HaRT
Moderator
Posts: 10865
Joined: Tue 30 Aug, 2005 17:21
Has thanked: 221 times
Been thanked: 358 times

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by HaRT »

Do the keys loaded in Pageant work for SSH auth via PuTTY?
Фар есть инструмент, а не нянька. © 2009 DrKnS
zb!
Posts: 20
Joined: Wed 26 Aug, 2009 15:20
Has thanked: 4 times
Been thanked: 4 times

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by zb! »

Yes, they do.
kcop
Posts: 2
Joined: Sat 26 Nov, 2022 04:58
Has thanked: 1 time

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by kcop »

Same issue here.
Unable to login to 3 different Ubuntu 22.04 machines (2 different providers), but have not problems with 15 Ubuntu 18 & Ubuntu 20 (same providers).
kcop
Posts: 2
Joined: Sat 26 Nov, 2022 04:58
Has thanked: 1 time

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by kcop »

Forgot to mention, that SFTP & SCP connections via WinSCP work fine
zb!
Posts: 20
Joined: Wed 26 Aug, 2009 15:20
Has thanked: 4 times
Been thanked: 4 times

NetBox: Support rsa-sha2-256 and rsa-sha2-512 key exchange

Post by zb! »

Just to have a workaround, albeit a rather nasty one: you can re-allow the weaker keys by adding this to /etc/ssh/sshd_config:
HostKeyAlgorithms +ssh-rsa PubkeyAcceptedKeyTypes +ssh-rsa
Post Reply

Return to “Bug Reports”