Lines Matching defs:ssh
60 #include "ssh-gss.h"
76 * Check if the user is allowed to log in via ssh. If user is listed
85 allowed_user(struct ssh *ssh, struct passwd * pw)
123 hostname = auth_get_canonical_hostname(ssh, options.use_dns);
124 ipaddr = ssh_remote_ipaddr(ssh);
240 auth_log(struct ssh *ssh, int authenticated, int partial,
243 Authctxt *authctxt = (Authctxt *)ssh->authctxt;
276 ssh_remote_ipaddr(ssh),
277 ssh_remote_port(ssh),
285 auth_maxtries_exceeded(struct ssh *ssh)
287 Authctxt *authctxt = (Authctxt *)ssh->authctxt;
293 ssh_remote_ipaddr(ssh),
294 ssh_remote_port(ssh));
295 ssh_packet_disconnect(ssh, "Too many authentication failures");
303 auth_root_allowed(struct ssh *ssh, const char *method)
322 ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));
414 getpwnamallow(struct ssh *ssh, const char *user)
422 ci = server_get_connection_info(ssh, 1, options.use_dns);
430 server_process_permitopen(ssh);
435 user, ssh_remote_ipaddr(ssh), ssh_remote_port(ssh));
438 if (!allowed_user(ssh, pw))
445 auth_approval(as, lc, pw->pw_name, "ssh") <= 0) {
512 auth_debug_send(struct ssh *ssh)
522 ssh_packet_send_debug(ssh, "%s", msg);
572 auth_get_canonical_hostname(struct ssh *ssh, int use_dns)
577 return ssh_remote_ipaddr(ssh);
580 dnsname = ssh_remote_hostname(ssh);
658 auth_activate_options(struct ssh *ssh, struct sshauthopt *opts)
673 auth_restrict_session(struct ssh *ssh)
685 if (auth_activate_options(ssh, restricted) != 0)