aboutsummaryrefslogtreecommitdiff
path: root/libssh/session.c
diff options
context:
space:
mode:
authorRuben Garcia Azuara <rubenga@tid.es>2010-04-06 20:07:01 +0200
committerAndreas Schneider <mail@cynapses.org>2010-04-07 11:29:47 +0200
commit5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa (patch)
treeda155233397d23cd1f8d0f76b0108570c61079e7 /libssh/session.c
parent14eb593af3c41ea439f01d34aaae497d8420f316 (diff)
downloadlibssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.tar.gz
libssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.tar.xz
libssh-5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa.zip
Added support for StrictHostKeyChecking and UserKnownHostsFile parameters.
Added OpenSSH parameters to libssh: - StrictHostKeyChecking - UserKnownHostsFile This parameters are useful to avoid checking the fingerprint. Eg: ~/.ssh/config: Host 192.10.20.30 StrictHostKeyChecking no UserKnownHostsFile /dev/null Signed-off-by: Ruben Garcia Azuara <rubenga@tid.es> Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh/session.c')
-rw-r--r--libssh/session.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libssh/session.c b/libssh/session.c
index e6d9fc7d..ec127f52 100644
--- a/libssh/session.c
+++ b/libssh/session.c
@@ -90,6 +90,7 @@ ssh_session ssh_new(void) {
session->maxchannel = FIRST_CHANNEL;
/* options */
+ session->StrictHostKeyChecking = 1;
session->port = 22;
session->fd = -1;
session->ssh2 = 1;