Closed nathansamson closed 7 months ago
Hello @nathansamson,
I think problem is that server is sending disconnect on RSA+SHA2 attempt (even thought this should not be error). For now, it should be workaroundable with pubkey_algorithms
option, see: https://github.com/net-ssh/net-ssh/pull/891
Implementing server-sig-algs
extension could possibly make this work out of box. (I have seen some work on this in one net-ssh fork https://github.com/znewsham/net-ssh/pull/1)
For more in depth details about current approach for RSA keys (+ rationale), see my comment here: https://github.com/net-ssh/net-ssh/issues/886#issuecomment-1331126167
@zzambers thanks much for the input on this, really useful
I forgot to comment but passing pubkey_algorithms: ['ssh-rsa']
fixes this issue.
I think we can close this issue
Expected behavior
Net-SSH does not connect anymore in net-ssh 7.2 with a certain server (this might very well be a server issue, but it worked in net-ssh 6.2).
I do not control the server or can access their logs. I can help providing debug info from my side if possible...
Actual behavior
Server disconnects
System configuration
(Same output for same operation on same server with working versions)
Example App