mirror of
https://github.com/upa/mscp.git
synced 2026-02-17 11:44:48 +08:00
initial commit
This commit is contained in:
24
src/ssh.h
Normal file
24
src/ssh.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _SSH_H_
|
||||
#define _SSH_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 *password; /* filled at the first connecting phase */
|
||||
};
|
||||
|
||||
/* ssh_make_sftp_session() creates sftp_session. sshdst accpets
|
||||
* user@hostname and hostname notations (by libssh).
|
||||
*/
|
||||
sftp_session ssh_make_sftp_session(char *sshdst, struct ssh_opts *opts);
|
||||
|
||||
#endif /* _SSH_H_ */
|
||||
Reference in New Issue
Block a user