| Summary: | RhostsAuthentication failing with privsep | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Alf Nicolaysen <Alf.Nicolaysen> | ||||
| Component: | sshd | Assignee: | OpenSSH Bugzilla mailing list <openssh-bugs> | ||||
| Status: | CLOSED FIXED | ||||||
| Severity: | normal | ||||||
| Priority: | P2 | ||||||
| Version: | -current | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
|
Description
Alf Nicolaysen
2003-03-21 23:13:24 AEDT
IgnoreRhosts
... The default is ``yes''.
/etc/hosts.equiv
... such users are permitted to log
in as any user on this machine (except root).
Yes, I set the option "IgnoreRhosts no" in the sshd_config. I also set the option "strictModes no" to prevent a failing here. Nothing helps. Alf Seems to be a privsep thing. Try running sshd with "-o UsePrivilegeSeparation=no". I can get rhosts authentication to work if I disable privsep. It works as a non-root user with shosts.equiv and with /.shosts as root. With privsep enabled, it fails. I will attach a debug log. I also needed to make ssh setuid root so it could bind to a privileged port. Also, the man page fragment that Markus quoted does not seem clear on root logins with hosts.equiv, however. With a bit more context, it says: "/etc/hosts.equiv This file is used during .rhosts authentication. In the simplest form, this file contains host names, one per line. Users on those hosts are permitted to log in without a password, provided they have the same user name on both machines. The host name may also be followed by a user name; such users are permitted to log in as any user on this machine (except root)." To me, the last sentence seems to say the exception for root applies only when the the optional username follows the hostname. Created attachment 256 [details]
sshd & ssh debug traces for rhosts authentication
Reproduced on Redhat 8 too, this does not seem to be specific to AIX. ok, there is no privsep code for rhosts authentication. should it be added? rhosts is insecure and there are alternatives like rhosts-rsa or hostbased. should rhosts be dropped? Yes, indeed. With this option it worked. As I do not know, if it ever will be fixed or not, I switch to RSARhostsAuthentication and leave the RhostsAuthentication in this state. Thanx for your help Alf Nicolaysen Mass change of RESOLVED bugs to CLOSED |