bugzilla-daemon at mindrot.org
2003-Oct-20 23:17 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 Summary: host authentication requires RSA1 keys Product: Portable OpenSSH Version: 3.7.1p1 Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Documentation AssignedTo: openssh-bugs at mindrot.org ReportedBy: gbburkhardt at aaahawk.com The documentation indicates that /etc/ssh/ssh_known_hosts can be built from entries in the per-user ~/.ssh/known_hosts file. However, the entry must have an RSA1 key; any other key type will not work. In the 'ssh' man page: "If the server machine does not have the client's host key in /etc/ssh/ssh_known_hosts, it can be stored in $HOME/.ssh/known_hosts. The easiest way to do this is to con- nect back to the client from the server machine using ssh; this will automatically add the host key to $HOME/.ssh/known_hosts." The key put in the user's known_hosts file is 'ssh-rsa', which will not work for host based authentication in /etc/ssh/ssh_known_hosts. In monitor.c, at about line 962 the type of the key passed to key_read() is fixed: case MM_RSAHOSTKEY: key->type = KEY_RSA1; /* XXX */ allowed = options.rhosts_rsa_authentication && auth_rhosts_rsa_key_allowed(authctxt->pw, cuser, chost, key); In addition, the host's IP address is required in the key definition in /etc/ssh/ssh_known_hosts; the symbolic host name won't work. Here's a workaround, that could be included in the documentation: Here's a workaround for the problem. Use ssh-keyscan -t rsa1 192.168.2.30 > ssh_known_hosts where the actual host's IP address should be substituted for "192.168.2.30". ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-20 23:17 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 gbburkhardt at aaahawk.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.7.1p1 |3.7p1 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-20 23:19 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 gbburkhardt at aaahawk.com changed: What |Removed |Added ---------------------------------------------------------------------------- Version|3.7p1 |-current ------- Additional Comments From gbburkhardt at aaahawk.com 2003-10-21 09:19 ------- The line number in monitor.c applies to rev 3.7.1p2. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 09:26 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From markus at openbsd.org 2003-10-22 19:26 ------- *** Bug 746 has been marked as a duplicate of this bug. *** ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 09:27 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID ------- Additional Comments From markus at openbsd.org 2003-10-22 19:27 ------- that's not a bug. protocol 1 hostbased, AKA rhostsrsa requires rsa1 protocol 2 hostbaesed requires rsa/dsa hostkeys. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 11:45 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 gbburkhardt at aaahawk.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From gbburkhardt at aaahawk.com 2003-10-22 21:45 ------- I guess a bug is in the eyes of the beholder. If the code doesn't do what the documentation says, is it a bug, or is the documentation incorrect? In this case, I'd say the documentation is incorrect. My main point is that in order to use the feature, the docuemtation misled me, and I had to resort to the source code to figure out how to get the feature to work. My appeal is to fix the documentation. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 11:52 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From markus at openbsd.org 2003-10-22 21:52 ------- AFAIK it's obvious from the documentation that rsa1 keys are for protocol 1 and rsa/dsa for protocol 2. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 11:52 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial ------- Additional Comments From markus at openbsd.org 2003-10-22 21:52 ------- please pr ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 11:53 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 markus at openbsd.org changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Linux |All ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 14:21 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From gbburkhardt at aaahawk.com 2003-10-23 00:21 -------> AFAIK it's obvious from the documentation thatThe documentation for what's needed in /etc/ssh/ssh_known_hosts is wrong, and, if followed, prevents host based authentication from working. A short note about the requirement for RSA1 keys, with the IP address of the known host, would be very helpful. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 14:35 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From markus at openbsd.org 2003-10-23 00:35 ------- the documentation says that the global known hosts file can be generated from the per user file. that's not wrong. there is no requirement for rsa1 keys. i think it's obvious that the ssh1 protocol uses ssh1 keys and the ssh2 protocol uses ssh2 keys. the documentation also mentions over and over again that RhostsRSA only works with protocol 1. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 20:36 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From gbburkhardt at aaahawk.com 2003-10-23 06:36 ------- I realize now that the source of my confusion was that the default for ssh on one machine was protocol 1, and on the other, protocol 2. So the bit in the ssh man page that says: "If the server machine does not have the client's host key in /etc/ssh/ssh_known_hosts, it can be stored in $HOME/.ssh/known_hosts. The easiest way to do this is to con- nect back to the client from the server machine using ssh; this will automatically add the host key to $HOME/.ssh/known_hosts." didn't work. I believe that the documentation could be improved by adding something like this to the ssh man page, where the /etc/ssh/ssh_known_hosts file is discussed: /usr/local/etc/ssh_known_hosts Systemwide list of known host keys. This file should be prepared by the system administrator to contain the public host keys of all machines in the organization. This file should be world- readable. This file contains public keys, one per line, in the following format (fields separated by spaces): system name, pub- lic key and optional comment field. When different names are used for the same machine, all such names should be listed, sepa- rated by commas. The format is described on the sshd(8) manual page. If the system wide ssh_known_hosts file is to be used for protocol 1 Rhosts RSA Authentication, there must be an entry with an RSA1 key and the IP address of the machine as a system name. For use with protocol 2 host based authentication, the entry must have an RSA key and the IP address as a system name. 'ssh-keyscan' can be used to obtain the key from the host with the appropriate type, e.g., ssh-keyscan -t rsa1 ip-address >> /usr/local/etc/ssh_known_hosts I haven't been able to find anywhere in the documentation that it's required that the IP address of the machine be listed as a system name. There a short reference in the sshd_config man page to which key is used by which protocol, and others in the ssh-keygen/ssh-keyscan utilities, but it can't hurt to note that in the ssh_known_hosts files, separate keys are required if the server is to handle both protocols. Thanks. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2003-Oct-22 21:38 UTC
[Bug 747] host authentication requires RSA1 keys
http://bugzilla.mindrot.org/show_bug.cgi?id=747 ------- Additional Comments From gbburkhardt at aaahawk.com 2003-10-23 07:38 ------- Sorry, just discovered that the IP address isn't required for protocol 2. It's smarter. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
Apparently Analagous Threads
- [Bug 746] host authentication requires RSA1 keys
- ssh-ed25519 and ecdsa-sha2-nistp256 host keys
- OpenSSH_6.7p1 hostbased authentication failing on linux->linux connection. what's wrong with my config?
- ssh keys hostname VS fqdn - offends?
- sshkey resource type in Ubuntu 10.04