[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help: Create a client to connect to SSH server, but it does not support ssh-dss


Hi Everyone,

The  libshh_0.9.3.2 was installed by vcpkg on my computer. The Visual C++ 2015 is being used as developing tool. Platform: Windows 10 64bit.

I am writing a client program which connect to different SSH servers. It works for most of servers, but one server I got error message like:

no match for method server host key algo: server [ssh-dss], client [ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa]

I added  ssh_options_set(my_ssh_session, SSH_OPTIONS_HOSTKEYS, "ssh-dss,ecdh-sha2-nistp256"); in my code, but it still not work.

Any suggestion, how to make the libssh support ssh-dss ?


Best regards

Laurence



Archive administrator: postmaster@lists.cynapses.org