search for: hostlin

Displaying 6 results from an estimated 6 matches for "hostlin".

Did you mean: hostmin
2006 Feb 04
2
[PATCH] allow user to update changed key in known_hosts
...ew_key(const char *host, Key *host_key, + const char* ip, const char* type, HostStatus ip_status, + const char *user_hostfile); /* * Connect to the given ssh server using a proxy command. @@ -524,10 +527,9 @@ Key *file_key; const char *type = key_type(host_key); char *ip = NULL; - char hostline[1000], *hostp, *fp; HostStatus host_status; HostStatus ip_status; - int r, local = 0, host_ip_differ = 0; + int local = 0, host_ip_differ = 0; int salen; char ntop[NI_MAXHOST]; char msg[1024]; @@ -674,71 +676,10 @@ error("No %s host key is known for %.200s and you "...
2003 Mar 04
0
hashing known_hosts
...e = user_hostfile; + +#ifdef HASH_KNOWN_HOSTS + if (options.hash_known_hosts) { + /* + * turn off host ip checking because we take care of it + */ + options.check_host_ip = 0; + + snprintf(hostline, sizeof(hostline), "%s,%s", host,ip); + SHA1(hostline, strlen(hostline), md); + uuencode(md, SHA_DIGEST_LENGTH, uu, SHA_DIGEST_LENGTH*2); + host_status = check_host_in_hostfile(host_file, uu, host_key, + file_key, &host_line...
2002 Feb 13
0
[Bug 112] New: Using host key fingerprint instead of "yes"
...want to continue connecting " "(yes/no)? ", host, ip, type, fp); - xfree(fp); - if (!confirm(prompt)) { + if (!confirm(prompt, fp)) { + xfree(fp); goto fail; } + xfree(fp); } if (options.check_host_ip && ip_status == HOST_NEW) { snprintf(hostline, sizeof(hostline), "%s,%s", host, ip); @@ -815,7 +818,7 @@ goto fail; } else if (options.strict_host_key_checking == 2) { if (!confirm("Are you sure you want " - "to continue connecting (yes/no)? ")) { + "to continue connecting (yes/no)? &...
2007 Oct 10
0
PATCH: incorrect behaviour of 'ssh-keygen -HF'
hi, the corner case of '-HF' hashes the whole hostline and not just the host xor IP address which means that usually it will hash "HOST,IP". This will never be matched if manually included into the known_host file. Patch against 4.7p1 attached. J. -- Jan Pechanec -------------- next part -------------- --- openssh-4.7p1/ssh-keygen.c M...
2007 Oct 19
3
[Bug 1376] New: 'ssh-keygen -HF' hashes host,IP together
...onent: ssh-keygen AssignedTo: bitbucket at mindrot.org ReportedBy: jp at devnull.cz Created an attachment (id=1363) --> (http://bugzilla.mindrot.org/attachment.cgi?id=1363) fix for the bug reported the corner case of '-HF' returns a string that is a hash for the whole hostline and not just the host xor IP address which means that usually it will return a hash for "HOST,IP". This will never be matched if manually included into the known_host file since ssh hashes only one of HOST or IP to look for a match in known_hosts file. patch to fix this is included. --...
2012 Dec 27
3
[PATCH] hostfile: list known names (if any) for new hostkeys
...ostkeys(struct hostkeys *, Key *, diff --git a/sshconnect.c b/sshconnect.c index 07800a6..62306ac 100644 --- a/sshconnect.c +++ b/sshconnect.c @@ -718,13 +718,13 @@ check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, Key *raw_key = NULL; char *ip = NULL, *host = NULL; char hostline[1000], *hostp, *fp, *ra; - char msg[1024]; + char msg[2048]; const char *type; const struct hostkey_entry *host_found, *ip_found; int len, cancelled_forwarding = 0; int local = sockaddr_is_local(hostaddr); int r, want_cert = key_is_cert(host_key), host_ip_differ = 0; - struct hostkeys *h...