Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 51) sorted by relevance

123

/openssh-portable/regress/
H A Dkeygen-knownhosts.sh9 for x in host-a host-b host-c host-d host-e host-f host-a2 host-b2; do
78 expect_key host-a host-a host-a 2
79 expect_key host-a host-a host-a2 20
84 expect_key host-c host-c host-c 8 CA
89 expect_key host-d host-d host-d 11 REVOKED
128 expect_key host-a host-a host-a
129 expect_key host-a host-a host-a2
134 expect_key host-c host-c host-c "" CA
208 expect_key host-a host-a host-a
209 expect_key host-a host-a host-a2
[all …]
H A Dcfginclude.sh10 Match host a
13 Match host b
17 Match host c
21 Match host m
44 Match host a
47 Match host b
50 Match host c
64 Match host a
67 Match host b
70 Match host c
[all …]
H A Dsshcfgparse.sh38 f=`${SSH} -GF $OBJ/ssh_config host | awk '/exitonforwardfailure/{print $2}'`
46 f=`${SSH} -GF $OBJ/ssh_config host | awk '/clearallforwardings/{print $2}'`
56 f=`${SSH} -GF $OBJ/ssh_config host | awk '/^user /{print $2}'`
60 f=`${SSH} -GF $OBJ/ssh_config -lbar baz@host user=foo baz@host | awk '/^user /{print $2}'`
62 f=`${SSH} -GF $OBJ/ssh_config baz@host -o user=foo -l bar baz@host | awk '/^user /{print $2}'`
67 f=`${SSH} -GF none host | awk '/^pubkeyacceptedkeytypes /{print $2}'`
71 f=`${SSH} -GF none -opubkeyacceptedkeytypes=ssh-ed25519 host | \
76 f=`${SSH} -GF none -opubkeyacceptedkeytypes=-ssh-ed25519-cert* host | \
80 f=`${SSH} -GF none -opubkeyacceptedkeytypes=-ssh-ed25519 host | \
87 f=`${SSH} -GF none -opubkeyacceptedkeytypes=+ssh-dss-cert* host | \
[all …]
H A Daddrmatch.sh10 user="$1"; addr="$2"; host="$3"; laddr="$4"; lport="$5"
13 verbose "test $descr for $user $addr $host"
15 -C user=${user},addr=${addr},host=${host},laddr=${laddr},lport=${lport} | \
25 Match Address 192.168.0.0/16,!192.168.30.0/24,10.0.0.0/8,host.example.com
H A Dnetcat.c145 char *host, *uport; in main() local
158 host = NULL; in main()
294 host = argv[0]; in main()
300 host = NULL; in main()
302 host = argv[0]; in main()
373 s = unix_bind(host); in main()
375 s = unix_listen(host); in main()
1507 hlen = strlen(host); in socks_connect()
1593 if (strcspn(host, "\r\n\t []:") != strlen(host)) in socks_connect()
1600 host, ntohs(serverport)); in socks_connect()
[all …]
H A DMakefile76 host-expand \
110 hkr.* host.ecdsa-sha2-nistp256 host.ecdsa-sha2-nistp384 \
111 host.ecdsa-sha2-nistp521 host.ssh-dss host.ssh-ed25519 \
112 host.ssh-rsa host_ca_key* host_krl_* host_revoked_* key.* \
H A Dssh-com-client.sh43 $SUDO cp $OBJ/$t $OBJ/host.$t
44 echo HostKey $OBJ/host.$t >> $OBJ/sshd_config
108 ${ssh2} -F ${OBJ}/ssh2_config host "cat > ${COPY}"
/openssh-portable/
H A Dauth-sia.c57 const char *host; in sys_auth_passwd() local
60 host = get_canonical_hostname(options.use_dns); in sys_auth_passwd()
65 if (sia_ses_init(&ent, saved_argc, saved_argv, host, authctxt->user, in sys_auth_passwd()
71 authctxt->user, host); in sys_auth_passwd()
87 const char *host; in session_setup_sia() local
89 host = get_canonical_hostname(options.use_dns); in session_setup_sia()
91 if (sia_ses_init(&ent, saved_argc, saved_argv, host, pw->pw_name, in session_setup_sia()
103 pw->pw_name, host); in session_setup_sia()
107 pw->pw_name, host); in session_setup_sia()
H A Dauth-rhosts.c87 char *host, *user, *cp; in check_rhosts_file() local
126 host = hostbuf; in check_rhosts_file()
131 if (host[0] == '-') { in check_rhosts_file()
133 host++; in check_rhosts_file()
134 } else if (host[0] == '+') in check_rhosts_file()
135 host++; in check_rhosts_file()
144 if (!host[0] || !user[0]) { in check_rhosts_file()
151 if (host[0] == '@') { in check_rhosts_file()
153 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
155 } else if (strcasecmp(host, hostname) && in check_rhosts_file()
[all …]
H A Dsshconnect.c97 "h", host, in expand_proxy_command()
145 host_arg, host, port); in ssh_proxy_fdpass_connect()
228 host_arg, host, port); in ssh_proxy_connect()
498 host, ntop, strport); in ssh_connect_direct()
934 hostp = host; in check_host_key()
1121 free(host); in check_host_key()
1145 free(host); in check_host_key()
1277 char *host; in ssh_login() local
1284 host = xstrdup(orighost); in ssh_login()
1285 lowercase(host); in ssh_login()
[all …]
H A Dhostfile.c142 ssh_hmac_update(ctx, host, strlen(host)) < 0 || in host_hash()
230 const char *host; member
257 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey()
275 ctx.host = host; in load_hostkeys()
287 ctx.num_loaded, host); in load_hostkeys()
296 free(hostkeys->entries[i].host); in free_hostkeys()
418 lhost = xstrdup(host); in write_host_entry()
466 const char *host; member
536 ctx.host = host; in hostfile_replace_entries()
657 return match_hostname(host, names) == 1; in match_maybe_hashed()
[all …]
H A Dmatch.c193 match_hostname(const char *host, const char *pattern) in match_hostname() argument
195 char *hostcopy = xstrdup(host); in match_hostname()
210 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
217 else if (host == NULL || ipaddr == NULL || mip == -1) in match_host_and_ip()
221 if ((mhost = match_hostname(host, patterns)) == -1) in match_host_and_ip()
235 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
242 if (user == NULL && host == NULL && ipaddr == NULL) { in match_user()
257 ret = match_host_and_ip(host, ipaddr, p); in match_user()
H A Dcanohost.c136 char *host, myname[NI_MAXHOST]; in get_local_name() local
139 if ((host = get_socket_address(fd, 0, NI_NAMEREQD)) != NULL) in get_local_name()
140 return host; in get_local_name()
145 host = xstrdup("UNKNOWN"); in get_local_name()
147 host = xstrdup(myname); in get_local_name()
150 return host; in get_local_name()
H A Dssh.c168 char *host; variable
656 host = NULL; in main()
967 host ? host : "", host ? host : "", line, in main()
1029 host = p; in main()
1040 if (!host) in main()
1108 free(host); in main()
1109 host = cp; in main()
1289 ssh_digest_update(md, host, strlen(host)) < 0 || in main()
1309 "h", host, in main()
1330 "h", host, in main()
[all …]
H A Dssh-keysign.c67 valid_request(struct passwd *pw, char *host, struct sshkey **ret, in valid_request() argument
133 debug2("%s: check expect chost %s got %s", __func__, host, p); in valid_request()
134 if (strlen(host) != len - 1) in valid_request()
138 else if (strncasecmp(host, p, len - 1) != 0) in valid_request()
175 char *host, *fp; in main() local
257 if ((host = get_local_name(fd)) == NULL) in main()
262 if (valid_request(pw, host, &key, data, dlen) < 0) in main()
264 free(host); in main()
H A Dsshlogin.c134 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_login() argument
141 li = login_alloc_entry(pid, user, host, tty); in record_login()
150 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_utmp_only() argument
154 li = login_alloc_entry(pid, user, host, ttyname); in record_utmp_only()
H A Daudit-bsm.c135 aug_get_machine(char *host, u_int32_t *addr, u_int32_t *type) in aug_get_machine() argument
142 if ((r = getaddrinfo(host, NULL, NULL, &ai)) != 0) { in aug_get_machine()
143 error("BSM audit: getaddrinfo failed for %.100s: %.100s", host, in aug_get_machine()
163 host, ai->ai_family); in aug_get_machine()
350 audit_connection_from(const char *host, int port) in audit_connection_from() argument
357 debug3("BSM audit: connection from %.100s port %d", host, port); in audit_connection_from()
362 aug_get_machine((char *)host, &(tid->at_addr[0]), &(tid->at_type)); in audit_connection_from()
369 tid->machine = inet_addr(host); in audit_connection_from()
H A Dssh-keyscan.c294 keyprint_one(const char *host, struct sshkey *key) in keyprint_one() argument
302 export_dns_rr(host, key, stdout, 0); in keyprint_one()
306 hostport = put_host_port(host, ssh_port); in keyprint_one()
322 char *host, *ohosts; in keyprint() local
331 while ((host = strsep(&hosts, ",")) != NULL) in keyprint()
332 keyprint_one(host, key); in keyprint()
337 tcpconnect(char *host) in tcpconnect() argument
361 error("connect (`%s'): %s", host, strerror(errno)); in tcpconnect()
617 do_host(char *host) in do_host() argument
619 char *name = strnnsep(&host, " \t\n"); in do_host()
[all …]
H A Dhostfile.h26 char *host; member
48 const char *host, const char *ip, struct sshkey **keys, size_t nkeys,
106 const char *host, const char *ip, u_int options);
H A Dscp.c246 ssh_program, host, in do_cmd()
294 addargs(&args, "%s", host); in do_cmd()
328 ssh_program, host, in do_cmd2()
350 addargs(&args, "%s", host); in do_cmd2()
883 char *suser = NULL, *host = NULL, *src = NULL; in toremote() local
916 free(host); in toremote()
971 addargs(&alist, "%s", host); in toremote()
998 free(host); in toremote()
1014 free(host); in tolocal()
1028 if (!host) { /* Local to local. */ in tolocal()
[all …]
H A Dmisc.c613 if (*host == '[' && host[strlen(host) - 1] == ']') { in cleanhostname()
614 host[strlen(host) - 1] = '\0'; in cleanhostname()
617 return host; in cleanhostname()
696 *hostp = host; in parse_user_host_path()
697 host = NULL; in parse_user_host_path()
707 free(host); in parse_user_host_path()
760 *hostp = host; in parse_user_host_port()
761 host = NULL; in parse_user_host_port()
769 free(host); in parse_user_host_port()
918 host = NULL; in parse_uri()
[all …]
H A Dreadconf.c570 host = xstrdup(host_arg); in match_cfg_line()
574 cp, host, original_host); in match_cfg_line()
619 criteria = xstrdup(host); in match_cfg_line()
650 "h", host, in match_cfg_line()
696 free(host); in match_cfg_line()
1335 if (match_pattern(host, arg)) { in process_config_line_depth()
2386 char *host = NULL, *user = NULL; in parse_jump() local
2421 o->jump_host = host; in parse_jump()
2424 user = host = NULL; in parse_jump()
2435 free(host); in parse_jump()
[all …]
H A Daudit.c123 audit_connection_from(const char *host, int port) in audit_connection_from() argument
125 debug("audit connection from %s port %d euid %d", host, port, in audit_connection_from()
/openssh-portable/openbsd-compat/
H A Dfake-rfc2553.c47 int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, in getnameinfo() argument
62 if (host != NULL) { in getnameinfo()
64 if (strlcpy(host, inet_ntoa(sin->sin_addr), in getnameinfo()
75 if (strlcpy(host, hp->h_name, hostlen) >= hostlen) in getnameinfo()
H A Dport-aix.c283 sys_auth_record_login(const char *user, const char *host, const char *ttynm, in sys_auth_record_login() argument
290 if (loginsuccess((char *)user, (char *)host, (char *)ttynm, &msg) == 0) { in sys_auth_record_login()
417 sshaix_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, in sshaix_getnameinfo() argument
429 strlcpy(host, "::", hostlen); in sshaix_getnameinfo()
434 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); in sshaix_getnameinfo()

Completed in 82 milliseconds

123