Issue with TScSSHClient HostKeyAlgorithms ecdsa-sha2-nistp256 in SecureBridge version 9.0.1
Posted: Fri 15 May 2020 08:05
Hi,
Short question, because it might be that this is a known issue of the (quite old) version (9.0.1) we are using, and it is already fixed in v9.2:
In our code we use TScSSHClient with HostKeyAlgorithms configured to also support ecdsa-sha2-nistp256:
This is how we configured in our code:
However, we have one customer with SSH server configured to accept only ECDSA as host key algorithm and he gets an error with this message:
Or is there something wrong in our code (in the way we configure the HostKeyAlgorithms)?
Any help would be highly appreciated!
Thx, Ajoschi
Short question, because it might be that this is a known issue of the (quite old) version (9.0.1) we are using, and it is already fixed in v9.2:
In our code we use TScSSHClient with HostKeyAlgorithms configured to also support ecdsa-sha2-nistp256:
This is how we configured in our code:
Code: Select all
lScSSHClient.HostKeyAlgorithms.AsString := 'ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521';
Since the message is quite strange ("...,ecdsa-sha2-,ecdsa-sha2-,ecdsa-sha2- ...") I wonder if this might be an issue in v9.0.1 which is meanwhile fixed?Negotiation of host key algorithm failed (ssh-rsa,ssh-dss,ecdsa-sha2-,ecdsa-sha2-,ecdsa-sha2- <-> ecdsa-sha2-nistp256)
Or is there something wrong in our code (in the way we configure the HostKeyAlgorithms)?
Any help would be highly appreciated!
Thx, Ajoschi