Problems with RhostRSAAuthecntication and UsePrivilegeSeparation

This is a discussion on Problems with RhostRSAAuthecntication and UsePrivilegeSeparation within the OpenSSH Development forums, part of the Networking and Network Related category; Hi, for some days now I am/was fighting with an annoying problem. I have to support an environment where ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-18-2005
Martin Knoblauch
 
Posts: n/a
Default Problems with RhostRSAAuthecntication and UsePrivilegeSeparation

Hi,

for some days now I am/was fighting with an annoying problem. I have
to support an environment where RhostRSAAuthecntication via
/etc/ssh/sshd_known_hosts is used for password-less login.

This works fine with RH7.3 (and RH8) and openssh versions
openssh-3.1p1-3 (and openssh-3.4p1-2).

Our customer has now requested an upgrade to RH9. That comes with
openssh-3.5p-11 and the password-less stuff (from the outside) does not
work any more.

$ ssh -v lpsdm05 date
OpenSSH_3.1p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Rhosts Authentication disabled, originating port will not be
trusted.
debug1: restore_uid
debug1: ssh_connect: getuid 43922 geteuid 0 anon 1
debug1: Connecting to lpsdm05 [160.48.88.26] port 22.
debug1: temporarily_use_uid: 43922/1000 (e=0)
debug1: restore_uid
debug1: temporarily_use_uid: 43922/1000 (e=0)
debug1: restore_uid
debug1: Connection established.
debug1: read PEM private key done: type DSA
debug1: read PEM private key done: type RSA
debug1: identity file /home/qx29340/.ssh/identity type -1
debug1: identity file /home/qx29340/.ssh/id_rsa type 1
debug1: identity file /home/qx29340/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version
OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Local version string SSH-1.5-OpenSSH_3.1p1
debug1: Waiting for server public key.
debug1: Received server public key (768 bits) and host key (1024 bits).
debug1: Host 'lpsdm05' is known and matches the RSA1 host key.
debug1: Found key in /etc/ssh/ssh_known_hosts:4450
debug1: Encryption type: 3des
debug1: Sent encrypted session key.
debug1: cipher_init: set keylen (16 -> 32)
debug1: cipher_init: set keylen (16 -> 32)
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Trying rhosts or /etc/hosts.equiv with RSA host authentication.
debug1: Remote: Accepted for lpsdm21.muc [160.48.88.10] by
/etc/hosts.equiv.
debug1: Remote: Your host key cannot be verified: unknown or invalid
host key.
debug1: Server refused our rhosts authentication or host key.
debug1: Doing challenge response authentication.
debug1: No challenge.
debug1: Doing password authentication.
qx29340@lpsdm05's password:

The interesting part is the "unknown or invalid host key". The
ssh-known_hosts file ist maintained centrally and is good.

First I suspected reverse lookup and added the IP-Adress of the client
to ssh_known_hosts. And password-less started to work again. But all
other tests I did showed that reverse lookup was working for all other
purposes.

So I played a bit more and found that setting "UsePrivilegeSeparation
no" in sshd_config "solved" my problem. Unfortunatelly that option is
not documented very well. Any ideas why it should make RhostsRSAA fail?
While I am kind of happy now, I like to understand what goes on :-)

The problem also happens when I am running a plain 2.4.30 kernel and
openssh-3.9p1.


Thanks a lot in advance
Please CC me, as I am not on the list
Martin

------------------------------------------------------
Martin Knoblauch
email: k n o b i AT knobisoft DOT de
www: http://www.knobisoft.de

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://www.mindrot.org/mailman/listi...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0