Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 53) 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 Dsshcfgparse.sh38 f=`${SSH} -GF $OBJ/ssh_config host | awk '/exitonforwardfailure/{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 | \
91 f=`${SSH} -GF none -opubkeyacceptedkeytypes=+ssh-dss host | \
[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 Dservcfginclude.sh7 Match host a
10 Match host b
14 Match host c
18 Match host m
41 Match host a
44 Match host b
47 Match host c
61 Match host a
64 Match host b
67 Match host c
[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()
1511 hlen = strlen(host); in socks_connect()
1597 if (strcspn(host, "\r\n\t []:") != strlen(host)) in socks_connect()
1604 host, ntohs(serverport)); in socks_connect()
[all …]
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}"
H A DMakefile77 host-expand \
111 hkr.* host.ecdsa-sha2-nistp256 host.ecdsa-sha2-nistp384 \
112 host.ecdsa-sha2-nistp521 host.ssh-dss host.ssh-ed25519 \
113 host.ssh-rsa host_ca_key* host_krl_* host_revoked_* key.* \
/openssh-portable/regress/unittests/misc/
H A Dtests.c23 char *user, *host, *path; in tests() local
27 &user, &host, &path), 0); in tests()
29 ASSERT_STRING_EQ(host, "some.host"); in tests()
31 free(user); free(host); free(path); in tests()
36 &user, &host, &path), 0); in tests()
40 free(user); free(host); free(path); in tests()
45 &user, &host, &path), 0); in tests()
49 free(user); free(host); free(path); in tests()
54 &user, &host, &path), 0); in tests()
63 &user, &host, &path), 0); in tests()
[all …]
/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.c86 char *host, *user, *cp; in check_rhosts_file() local
125 host = hostbuf; in check_rhosts_file()
130 if (host[0] == '-') { in check_rhosts_file()
132 host++; in check_rhosts_file()
133 } else if (host[0] == '+') in check_rhosts_file()
134 host++; in check_rhosts_file()
143 if (!host[0] || !user[0]) { in check_rhosts_file()
150 if (host[0] == '@') { in check_rhosts_file()
152 !innetgr(host + 1, ipaddr, NULL, NULL)) in check_rhosts_file()
154 } else if (strcasecmp(host, hostname) && in check_rhosts_file()
[all …]
H A Dsshconnect.c96 "h", host, in expand_proxy_command()
144 host, host_arg, port); in ssh_proxy_fdpass_connect()
227 host, host_arg, port); in ssh_proxy_connect()
497 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.c141 ssh_hmac_update(ctx, host, strlen(host)) < 0 || in host_hash()
229 const char *host; member
256 hostkeys->entries[hostkeys->num_entries].host = xstrdup(ctx->host); in record_hostkey()
274 ctx.host = host; in load_hostkeys()
286 ctx.num_loaded, host); in load_hostkeys()
295 free(hostkeys->entries[i].host); in free_hostkeys()
417 lhost = xstrdup(host); in write_host_entry()
465 const char *host; member
535 ctx.host = host; in hostfile_replace_entries()
657 return match_hostname(host, names) == 1; in match_maybe_hashed()
[all …]
H A Dmatch.c194 match_hostname(const char *host, const char *pattern) in match_hostname() argument
196 char *hostcopy = xstrdup(host); in match_hostname()
211 match_host_and_ip(const char *host, const char *ipaddr, in match_host_and_ip() argument
218 else if (host == NULL || ipaddr == NULL || mip == -1) in match_host_and_ip()
222 if ((mhost = match_hostname(host, patterns)) == -1) in match_host_and_ip()
236 match_user(const char *user, const char *host, const char *ipaddr, in match_user() argument
243 if (user == NULL && host == NULL && ipaddr == NULL) { in match_user()
258 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-keysign.c65 valid_request(struct passwd *pw, char *host, struct sshkey **ret, in valid_request() argument
131 debug2("%s: check expect chost %s got %s", __func__, host, p); in valid_request()
132 if (strlen(host) != len - 1) in valid_request()
136 else if (strncasecmp(host, p, len - 1) != 0) in valid_request()
173 char *host, *fp; in main() local
255 if ((host = get_local_name(fd)) == NULL) in main()
260 if (valid_request(pw, host, &key, data, dlen) < 0) in main()
262 free(host); in main()
H A Dssh.c169 char *host; variable
664 host = NULL; in main()
994 host ? host : "", host ? host : "", line, in main()
1056 host = p; in main()
1067 if (!host) in main()
1135 free(host); in main()
1136 host = cp; in main()
1334 ssh_digest_update(md, host, strlen(host)) < 0 || in main()
1354 "h", host, in main()
1375 "h", host, in main()
[all …]
H A Dsshlogin.c137 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_login() argument
144 li = login_alloc_entry(pid, user, host, tty); in record_login()
153 const char *host, struct sockaddr *addr, socklen_t addrlen) in record_utmp_only() argument
157 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.c306 keyprint_one(const char *host, struct sshkey *key) in keyprint_one() argument
314 export_dns_rr(host, key, stdout, 0); in keyprint_one()
318 hostport = put_host_port(host, ssh_port); in keyprint_one()
334 char *host, *ohosts; in keyprint() local
343 while ((host = strsep(&hosts, ",")) != NULL) in keyprint()
344 keyprint_one(host, key); in keyprint()
349 tcpconnect(char *host) in tcpconnect() argument
373 error("connect (`%s'): %s", host, strerror(errno)); in tcpconnect()
629 do_host(char *host) in do_host() argument
631 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.c248 ssh_program, host, in do_cmd()
296 addargs(&args, "%s", host); in do_cmd()
330 ssh_program, host, in do_cmd2()
352 addargs(&args, "%s", host); in do_cmd2()
885 char *suser = NULL, *host = NULL, *src = NULL; in toremote() local
918 free(host); in toremote()
973 addargs(&alist, "%s", host); in toremote()
1000 free(host); in toremote()
1016 free(host); in tolocal()
1030 if (!host) { /* Local to local. */ in tolocal()
[all …]
H A Dmisc.c625 if (*host == '[' && host[strlen(host) - 1] == ']') { in cleanhostname()
626 host[strlen(host) - 1] = '\0'; in cleanhostname()
629 return host; in cleanhostname()
708 *hostp = host; in parse_user_host_path()
709 host = NULL; in parse_user_host_path()
719 free(host); in parse_user_host_path()
772 *hostp = host; in parse_user_host_port()
773 host = NULL; in parse_user_host_port()
781 free(host); in parse_user_host_port()
930 host = NULL; in parse_uri()
[all …]
/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()
419 sshaix_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, in sshaix_getnameinfo() argument
431 strlcpy(host, "::", hostlen); in sshaix_getnameinfo()
436 return getnameinfo(sa, salen, host, hostlen, serv, servlen, flags); in sshaix_getnameinfo()

Completed in 70 milliseconds

123