I have a client that is getting the error in the subject.
I had the user do a ssh -v while logged in to get he version number:
dhatoffice@05 ~ : ssh -v
OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.7e-p1 25 Oct 2004
They are using this hosting service:
http://highspeedrails.com/
The user reports he can connect via putty.exe without issue, but when using my app that uses SB, he gets:
The negotiation of host key verification algorithm is failed
The negotiation of host key verification algorithm is failed
I was wrong, it was set to rsa only.snorkel wrote:I am pretty sure it's already set to that, but will double check.Dimon wrote:In order to solve the problem try to set the TScSSHClient.HostKeyAlgorithms.AsString property to 'ssh-rsa,ssh-dss'.
How do I set it to both in code at runtime?
Thanks,
Snorkel
This seemed to work:snorkel wrote:I was wrong, it was set to rsa only.snorkel wrote:I am pretty sure it's already set to that, but will double check.Dimon wrote:In order to solve the problem try to set the TScSSHClient.HostKeyAlgorithms.AsString property to 'ssh-rsa,ssh-dss'.
How do I set it to both in code at runtime?
Thanks,
Snorkel
dsa:= TScSSHHostKeyAlgorithmItem(fclient.HostKeyAlgorithms.Add);
dsa.Algorithm:=aadsa;
Don't know if that is best practice or not though.
It is right. But the simpler way is the following code:
Code: Select all
Client.HostKeyAlgorithms.AsString := 'ssh-rsa,ssh-dss';
Yes, that is much nicer. Thanks for the tipDimon wrote:It is right. But the simpler way is the following code:Code: Select all
Client.HostKeyAlgorithms.AsString := 'ssh-rsa,ssh-dss';
I recompiled it so hopefully that takes care of the issue my client was seeing.
Thanks again,
Snorkel