cache passphrase for private key for later connections.

This commit is contained in:
Ryo Nakamura
2022-12-02 23:20:23 +09:00
parent 03a3a6dc4b
commit 5846c6b6a9
2 changed files with 50 additions and 10 deletions

View File

@@ -16,7 +16,9 @@ struct ssh_opts {
int debuglevel; /* -v */
bool no_hostkey_check; /* -H */
char *password; /* filled at the first connecting phase */
#define PASSWORD_BUF_SZ 128
char *password; /* password for password auth */
char *passphrase; /* passphrase for private key */
};
/* ssh_init_sftp_session() creates sftp_session. sshdst accpets