Lines Matching refs:host
67 ssh_proxy_connect(const char *host, u_short port, const char *proxy_command) in ssh_proxy_connect() argument
103 buffer_append(&command, host, strlen(host)); in ssh_proxy_connect()
321 ssh_connect(const char *host, struct sockaddr_storage * hostaddr, in ssh_connect() argument
350 return ssh_proxy_connect(host, port, proxy_command); in ssh_connect()
358 if ((gaierr = getaddrinfo(host, strport, &hints, &aitop)) != 0) in ssh_connect()
359 fatal("%s: %.100s: %s", __progname, host, in ssh_connect()
383 host, ntop, strport); in ssh_connect()
425 host, strport, strerror(errno)); in ssh_connect()
602 check_host_key(char *host, struct sockaddr *hostaddr, Key *host_key, int in check_host_key() argument
670 (local || strcmp(host, ip) == 0 || options.proxy_command != NULL)) in check_host_key()
679 host = options.host_key_alias; in check_host_key()
680 debug("using hostkeyalias: %s", host); in check_host_key()
694 host_status = check_host_in_hostfile(host_file, host, host_key, in check_host_key()
698 host_status = check_host_in_hostfile(host_file, host, host_key, in check_host_key()
731 host, type); in check_host_key()
734 "key.", host, type); in check_host_key()
763 "have requested strict checking.", type, host); in check_host_key()
767 has_keys = show_other_keys(host, host_key); in check_host_key()
776 host, ip, in check_host_key()
790 host, ip); in check_host_key()
794 r = add_host_to_hostfile(user_hostfile, host, in check_host_key()
805 r = add_host_to_hostfile(user_hostfile, host, host_key, in check_host_key()
807 hostp = host; in check_host_key()
821 "(%s:%d)", host, host_file, host_line); in check_host_key()
847 type, host, ip, msg); in check_host_key()
872 "requested strict checking.", type, host); in check_host_key()
922 type, host, ip, ip_file, ip_line); in check_host_key()
955 verify_host_key(char *host, struct sockaddr *hostaddr, Key *host_key) in verify_host_key() argument
962 if (check_host_key(host, hostaddr, host_key, 0, /*readonly*/ 1, in verify_host_key()
966 return check_host_key(host, hostaddr, host_key, 0, /*readonly*/ 0, in verify_host_key()
971 accept_host_key(char *host, struct sockaddr *hostaddr, Key *host_key) in accept_host_key() argument
978 if (check_host_key(host, hostaddr, host_key, 1, /*readonly*/ 1, in accept_host_key()
982 return check_host_key(host, hostaddr, host_key, 1, /*readonly*/ 0, in accept_host_key()
996 char *host, *cp; in ssh_login() local
1003 host = xstrdup(orighost); in ssh_login()
1004 for (cp = host; *cp; cp++) in ssh_login()
1035 ssh_kex2(host, hostaddr); in ssh_login()
1036 ssh_userauth2(local_user, server_user, host, sensitive); in ssh_login()
1038 ssh_kex(host, hostaddr); in ssh_login()
1039 ssh_userauth1(local_user, server_user, host, sensitive); in ssh_login()
1065 show_key_from_file(const char *file, const char *host, int keytype) in show_key_from_file() argument
1072 if ((ret = lookup_key_in_hostfile_by_type(file, host, in show_key_from_file()
1078 key_type(found), host, file, line, in show_key_from_file()
1088 show_other_keys(const char *host, Key *key) in show_other_keys() argument
1097 show_key_from_file(options.user_hostfile2, host, type[i])) { in show_other_keys()
1102 show_key_from_file(options.system_hostfile2, host, type[i])) { in show_other_keys()
1106 if (show_key_from_file(options.user_hostfile, host, type[i])) { in show_other_keys()
1110 if (show_key_from_file(options.system_hostfile, host, type[i])) { in show_other_keys()
1114 debug2("no key of type %d for host %s", type[i], host); in show_other_keys()