From 685fe1d0b6c6dd6d53f65ee8adc83fbb409b9d4b Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 10 Sep 2013 07:07:43 +0200 Subject: session: Try the ecdsa default key first. --- src/session.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/session.c b/src/session.c index 2d6d09e..fe11b41 100644 --- a/src/session.c +++ b/src/session.c @@ -115,6 +115,17 @@ ssh_session ssh_new(void) { goto err; } +#ifdef HAVE_ECC + id = strdup("%d/id_ecdsa"); + if (id == NULL) { + goto err; + } + rc = ssh_list_append(session->opts.identity, id); + if (rc == SSH_ERROR) { + goto err; + } +#endif + id = strdup("%d/id_rsa"); if (id == NULL) { goto err; -- cgit