<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ssh problems with HostbasedAuthentication in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897377#M752168</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;if you are using openssh the shosts/rhosts authentification will only work with protocol version 1, you have set&lt;BR /&gt;Protocol 2&lt;BR /&gt;look at "man ssh" for more information.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Wed, 05 Feb 2003 15:01:08 GMT</pubDate>
    <dc:creator>Christian Gebhardt</dc:creator>
    <dc:date>2003-02-05T15:01:08Z</dc:date>
    <item>
      <title>ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897375#M752166</link>
      <description>I'm trying to configure sshd to allow secure connections with no prompting for password using .shosts file.&lt;BR /&gt;&lt;BR /&gt;sshd_config contains:&lt;BR /&gt;&lt;BR /&gt;Protocol 2&lt;BR /&gt;IgnoreRhosts no&lt;BR /&gt;HostbasedAuthentication yes&lt;BR /&gt;X11Forwarding yes&lt;BR /&gt;X11UseLocalhost no&lt;BR /&gt;Subsystem       sftp    /opt/ssh/libexec/sftp-server&lt;BR /&gt;&lt;BR /&gt;.shosts file contains:&lt;BR /&gt;&lt;BR /&gt;mysys  user&lt;BR /&gt;&lt;BR /&gt;/etc/hosts file contains:&lt;BR /&gt;&lt;BR /&gt;10.10.10.10 mysys&lt;BR /&gt;&lt;BR /&gt;Then I run:&lt;BR /&gt;&lt;BR /&gt;ssh -o HostbasedAuthentication=yes user@mysys&lt;BR /&gt;&lt;BR /&gt;and it logins fine.&lt;BR /&gt;&lt;BR /&gt;Now superuser adds another IP (20.20.20.20) to the system in other LAN connector and updates  /etc/hosts:&lt;BR /&gt;&lt;BR /&gt;10.10.10.10 mysys&lt;BR /&gt;20.20.20.20 mysys2&lt;BR /&gt;&lt;BR /&gt;but if I run&lt;BR /&gt;&lt;BR /&gt;ssh -o HostbasedAuthentication=yes user@mysys2&lt;BR /&gt;&lt;BR /&gt;password is required always to login.&lt;BR /&gt;&lt;BR /&gt;why ?&lt;BR /&gt;can anyone help me ?&lt;BR /&gt;&lt;BR /&gt;thanx a lot</description>
      <pubDate>Wed, 05 Feb 2003 14:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897375#M752166</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-05T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897376#M752167</link>
      <description>I forgot to say that I also updated .shosts files:&lt;BR /&gt;&lt;BR /&gt;mysys  user&lt;BR /&gt;mysys2 user&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Feb 2003 14:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897376#M752167</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-05T14:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897377#M752168</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;if you are using openssh the shosts/rhosts authentification will only work with protocol version 1, you have set&lt;BR /&gt;Protocol 2&lt;BR /&gt;look at "man ssh" for more information.&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 05 Feb 2003 15:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897377#M752168</guid>
      <dc:creator>Christian Gebhardt</dc:creator>
      <dc:date>2003-02-05T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897378#M752169</link>
      <description>Were you careful with the permission bits for .shosts?&lt;BR /&gt;ssh is (for good reason) very picky that file owner is the account that wants to login without password, and that .shosts ist only readable to them.&lt;BR /&gt;Otherwise ssh will ignore the file altogether&lt;BR /&gt;&lt;BR /&gt;Have you tried the -v switch to make ssh a bit more verbose.&lt;BR /&gt;In most cases it will give you clues why it failed.&lt;BR /&gt;&lt;BR /&gt;Is the hostkey in $HOME/.ssh/known_hosts still valid?</description>
      <pubDate>Wed, 05 Feb 2003 15:09:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897378#M752169</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2003-02-05T15:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897379#M752170</link>
      <description>Using .shosts with SSH provides an encrypted connection, but using .shosts has some of the same security ramifications as using .rhosts and isn't recommended unless you really, really need it. If you have an all HP-UX environment, you can use the SSH agent (See &lt;A href="http://newfdawg.com/SHP-SSHpart2.htm)" target="_blank"&gt;http://newfdawg.com/SHP-SSHpart2.htm)&lt;/A&gt; and will only need to enter the passphrase once.&lt;BR /&gt;&lt;BR /&gt;- Chris</description>
      <pubDate>Wed, 05 Feb 2003 16:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897379#M752170</guid>
      <dc:creator>Chris Wong</dc:creator>
      <dc:date>2003-02-05T16:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897380#M752171</link>
      <description>Thanks for everthing.&lt;BR /&gt;&lt;BR /&gt;Now my system accepts ssh-login without password from itself.&lt;BR /&gt;&lt;BR /&gt;The problem now is a hostA accepts ssh-login without password from hostB but not from hostC... and I cannot find why ?&lt;BR /&gt;&lt;BR /&gt;I added -vvv option in command line for debugging...&lt;BR /&gt;&lt;BR /&gt;ssh -vvv -o HostbasedAuthentication=yes user@hostC&lt;BR /&gt;&lt;BR /&gt;the following lines are a extract from all debug info:&lt;BR /&gt;&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug3: preferred hostbased,publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_lookup hostbased&lt;BR /&gt;debug3: remaining preferred: publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_is_enabled hostbased&lt;BR /&gt;debug1: next auth method to try is hostbased&lt;BR /&gt;debug2: userauth_hostbased: chost hostC.&lt;BR /&gt;debug2: we sent a hostbased packet, wait for reply&lt;BR /&gt;debug1: Remote: Accepted by .shosts.&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug2: userauth_hostbased: chost hostC.&lt;BR /&gt;debug2: we sent a hostbased packet, wait for reply&lt;BR /&gt;debug1: Remote: Accepted by .shosts.&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug1: userauth_hostbased: no more client hostkeys&lt;BR /&gt;debug2: we did not send a packet, disable method&lt;BR /&gt;debug3: authmethod_lookup publickey&lt;BR /&gt;debug3: remaining preferred: keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_is_enabled publickey&lt;BR /&gt;debug1: next auth method to try is publickey&lt;BR /&gt;debug1: try privkey: /.ssh/id_rsa&lt;BR /&gt;debug3: no such identity: /.ssh/id_rsa&lt;BR /&gt;debug1: try privkey: /.ssh/id_dsa&lt;BR /&gt;debug3: no such identity: /.ssh/id_dsa&lt;BR /&gt;debug2: we did not send a packet, disable method&lt;BR /&gt;debug3: authmethod_lookup keyboard-interactive&lt;BR /&gt;debug3: remaining preferred: password&lt;BR /&gt;&lt;BR /&gt;Compare with the messages reported by command:&lt;BR /&gt;&lt;BR /&gt;ssh -vvv -o HostbasedAuthentication=yes user@hostA&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug3: preferred hostbased,publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_lookup hostbased&lt;BR /&gt;debug3: remaining preferred: publickey,keyboard-interactive,password&lt;BR /&gt;debug3: authmethod_is_enabled hostbased&lt;BR /&gt;debug1: next auth method to try is hostbased&lt;BR /&gt;debug2: userauth_hostbased: chost in_bckup.&lt;BR /&gt;debug2: we sent a hostbased packet, wait for reply&lt;BR /&gt;debug1: Remote: Accepted by .shosts.&lt;BR /&gt;debug1: authentications that can continue: publickey,password,keyboard-interactive,hostbased&lt;BR /&gt;debug2: userauth_hostbased: chost in_bckup.&lt;BR /&gt;debug2: we sent a hostbased packet, wait for reply&lt;BR /&gt;debug1: Remote: Accepted by .shosts.&lt;BR /&gt;debug1: ssh-userauth2 successful: method hostbased&lt;BR /&gt;debug3: clear hostkey 0&lt;BR /&gt;debug1: channel 0: new [client-session]&lt;BR /&gt;debug3: ssh_session2_open: channel_new: 0&lt;BR /&gt;debug1: send channel open 0&lt;BR /&gt;debug1: Entering interactive session.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone help me ?&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Feb 2003 16:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897380#M752171</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-06T16:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897381#M752172</link>
      <description>Here is a cookbook that should work.  It tells how to generate and distribute public keys.&lt;BR /&gt;&lt;BR /&gt;It worked for me.&lt;BR /&gt;&lt;BR /&gt;P</description>
      <pubDate>Thu, 06 Feb 2003 16:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897381#M752172</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-02-06T16:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: ssh problems with HostbasedAuthentication</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897382#M752173</link>
      <description>Thank you Steven.&lt;BR /&gt;&lt;BR /&gt;Your doc helped me to solve my problems with SSH.</description>
      <pubDate>Fri, 07 Feb 2003 09:07:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-problems-with-hostbasedauthentication/m-p/2897382#M752173</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2003-02-07T09:07:41Z</dc:date>
    </item>
  </channel>
</rss>

