add -H option to disable host key check

tests use this option.
This commit is contained in:
Ryo Nakamura
2022-11-05 22:46:02 +09:00
parent 8cb5c81fcf
commit 243bf1fa57
6 changed files with 380 additions and 24 deletions

View File

@@ -1,19 +1,21 @@
#ifndef _SSH_H_
#define _SSH_H_
#include <stdbool.h>
#include <libssh/libssh.h>
#include <libssh/sftp.h>
struct ssh_opts {
char *login_name; /* -l */
char *port; /* -p */
char *identity; /* -i */
char *cipher; /* -c */
int compress; /* -C */
int debuglevel; /* -v */
char *login_name; /* -l */
char *port; /* -p */
char *identity; /* -i */
char *cipher; /* -c */
int compress; /* -C */
int debuglevel; /* -v */
bool no_hostkey_check; /* -H */
char *password; /* filled at the first connecting phase */
char *password; /* filled at the first connecting phase */
};
/* ssh_make_sftp_session() creates sftp_session. sshdst accpets