[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Specify Host Key
[Thread Prev] | [Thread Next]
- Subject: Specify Host Key
- From: Oliver Gasser <gasser@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 21 Jun 2012 14:20:33 +0200
- To: libssh@xxxxxxxxxx
Hello, is it possible to specify the host key preference when connecting to a server? In kex.c there is #ifdef HAVE_ECDH #define KEY_EXCHANGE "ecdh-sha2-nistp256,diffie-hellman-group1-sha1" #define HOSTKEYS "ecdsa-sha2-nistp256,ssh-rsa,ssh-dss" #else #define KEY_EXCHANGE "diffie-hellman-group1-sha1" #define HOSTKEYS "ssh-rsa,ssh-dss" #endif so they seem to be predefined. Is that correct? And if yes, is it possible to circumvent this and specify your own host-key preference dynamically? Regards, Oliver Gasser
Re: Specify Host Key | Aris Adamantiadis <aris@xxxxxxxxxxxx> |