From 5a2abd34ce9ad97c69906c5fb7b07e26e96fceaa Mon Sep 17 00:00:00 2001 From: Ruben Garcia Azuara Date: Tue, 6 Apr 2010 20:07:01 +0200 Subject: 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 Signed-off-by: Andreas Schneider --- libssh/session.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libssh/session.c') diff --git a/libssh/session.c b/libssh/session.c index e6d9fc7..ec127f5 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; -- cgit