Lines Matching defs:ssh
61 #include "ssh.h"
368 "Denied establishing ssh session: md5 fingerprint not available");
379 "Denied establishing ssh session: mismatch md5 fingerprint. "
672 struct SSHPROTO *protop = data->req.p.ssh;
705 failf(data, "Failure establishing ssh session");
930 * At this point we have an authenticated ssh session.
2143 struct SSHPROTO *ssh;
2146 data->req.p.ssh = ssh = calloc(1, sizeof(struct SSHPROTO));
2147 if(!ssh)
2163 struct ssh_conn *ssh;
2170 if(!data->req.p.ssh)
2186 ssh = &conn->proto.sshc;
2188 ssh->ssh_session = ssh_new();
2189 if(!ssh->ssh_session) {
2190 failf(data, "Failure initialising ssh session");
2194 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_HOST, conn->host.name);
2200 rc = ssh_options_parse_config(ssh->ssh_session, NULL);
2206 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_FD, &sock);
2214 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_USER, conn->user);
2223 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_KNOWNHOSTS,
2232 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_PORT,
2241 rc = ssh_options_set(ssh->ssh_session, SSH_OPTIONS_COMPRESSION,
2249 ssh->privkey = NULL;
2250 ssh->pubkey = NULL;
2254 &ssh->pubkey);
2353 struct ssh_conn *ssh = &conn->proto.sshc;
2356 if(ssh->ssh_session) {
2372 struct SSHPROTO *protop = data->req.p.ssh;
2638 struct SSHPROTO *protop = data->req.p.ssh;