<?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 Cannot passwordlessly ssh using root in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381979#M476505</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;know this is a commonly posted issue but could not make it work.&lt;/P&gt;&lt;P&gt;Have an 11.31 box where I need to be able to ssh using root without prompting the password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to make it simple I was ssh to myself using root, and got a password prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to&lt;/P&gt;&lt;P&gt;1) regenerate the local keys public and private via &amp;nbsp;ssh-keygen -t dsa&lt;/P&gt;&lt;P&gt;2) copied the id_dsa.pub to authorized_keys and chmod 600&lt;/P&gt;&lt;P&gt;3) tried to ssh to myself and got the password prompt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the same box another user is able to connect to itself but not to root, so that think the issue may be in some root specific configuration preventing that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh -vvvv &amp;lt;hostname&amp;gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ebug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_setup: found hmac-md5&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-cbc'&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug2: dh_gen_key: priv key bits set: 134/256&lt;BR /&gt;debug2: bits set: 538/1024&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug3: check_host_in_hostfile: filename /.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: match line 1&lt;BR /&gt;debug3: check_host_in_hostfile: filename /.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: match line 2&lt;BR /&gt;debug1: Host 'tbsms1a' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.ssh/known_hosts:1&lt;BR /&gt;debug2: bits set: 490/1024&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug2: kex_derive_keys&lt;BR /&gt;debug2: set_newkeys: mode 1&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug2: set_newkeys: mode 0&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug2: service_accept: ssh-userauth&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug2: key: /.ssh/id_rsa (0)&lt;BR /&gt;debug2: key: /.ssh/id_dsa (40038a20)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive&lt;BR /&gt;debug3: preferred publickey,keyboard-interactive,password&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 authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /.ssh/id_rsa&lt;BR /&gt;debug3: no such identity: /.ssh/id_rsa&lt;BR /&gt;debug1: Offering public key: /.ssh/id_dsa&lt;BR /&gt;debug3: send_pubkey_test&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&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;debug3: authmethod_is_enabled keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug2: userauth_kbdint&lt;BR /&gt;debug2: we sent a keyboard-interactive packet, wait for reply&lt;BR /&gt;debug2: input_userauth_info_req&lt;BR /&gt;debug2: input_userauth_info_req: num_prompts 1&lt;BR /&gt;Password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2011 13:34:57 GMT</pubDate>
    <dc:creator>Michele Albertone</dc:creator>
    <dc:date>2011-11-04T13:34:57Z</dc:date>
    <item>
      <title>Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381979#M476505</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;know this is a commonly posted issue but could not make it work.&lt;/P&gt;&lt;P&gt;Have an 11.31 box where I need to be able to ssh using root without prompting the password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to make it simple I was ssh to myself using root, and got a password prompt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to&lt;/P&gt;&lt;P&gt;1) regenerate the local keys public and private via &amp;nbsp;ssh-keygen -t dsa&lt;/P&gt;&lt;P&gt;2) copied the id_dsa.pub to authorized_keys and chmod 600&lt;/P&gt;&lt;P&gt;3) tried to ssh to myself and got the password prompt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the same box another user is able to connect to itself but not to root, so that think the issue may be in some root specific configuration preventing that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ssh -vvvv &amp;lt;hostname&amp;gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ebug1: kex: server-&amp;gt;client aes128-cbc hmac-md5 none&lt;BR /&gt;debug2: mac_setup: found hmac-md5&lt;BR /&gt;debug1: REQUESTED ENC.NAME is 'aes128-cbc'&lt;BR /&gt;debug1: kex: client-&amp;gt;server aes128-cbc hmac-md5 none&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&amp;lt;1024&amp;lt;8192) sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP&lt;BR /&gt;debug2: dh_gen_key: priv key bits set: 134/256&lt;BR /&gt;debug2: bits set: 538/1024&lt;BR /&gt;debug1: SSH2_MSG_KEX_DH_GEX_INIT sent&lt;BR /&gt;debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY&lt;BR /&gt;debug3: check_host_in_hostfile: filename /.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: match line 1&lt;BR /&gt;debug3: check_host_in_hostfile: filename /.ssh/known_hosts&lt;BR /&gt;debug3: check_host_in_hostfile: match line 2&lt;BR /&gt;debug1: Host 'tbsms1a' is known and matches the RSA host key.&lt;BR /&gt;debug1: Found key in /.ssh/known_hosts:1&lt;BR /&gt;debug2: bits set: 490/1024&lt;BR /&gt;debug1: ssh_rsa_verify: signature correct&lt;BR /&gt;debug2: kex_derive_keys&lt;BR /&gt;debug2: set_newkeys: mode 1&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS sent&lt;BR /&gt;debug1: expecting SSH2_MSG_NEWKEYS&lt;BR /&gt;debug2: set_newkeys: mode 0&lt;BR /&gt;debug1: SSH2_MSG_NEWKEYS received&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_REQUEST sent&lt;BR /&gt;debug2: service_accept: ssh-userauth&lt;BR /&gt;debug1: SSH2_MSG_SERVICE_ACCEPT received&lt;BR /&gt;debug2: key: /.ssh/id_rsa (0)&lt;BR /&gt;debug2: key: /.ssh/id_dsa (40038a20)&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&lt;BR /&gt;debug3: start over, passed a different list publickey,password,keyboard-interactive&lt;BR /&gt;debug3: preferred publickey,keyboard-interactive,password&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 authentication method: publickey&lt;BR /&gt;debug1: Trying private key: /.ssh/id_rsa&lt;BR /&gt;debug3: no such identity: /.ssh/id_rsa&lt;BR /&gt;debug1: Offering public key: /.ssh/id_dsa&lt;BR /&gt;debug3: send_pubkey_test&lt;BR /&gt;debug2: we sent a publickey packet, wait for reply&lt;BR /&gt;debug1: Authentications that can continue: publickey,password,keyboard-interactive&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;debug3: authmethod_is_enabled keyboard-interactive&lt;BR /&gt;debug1: Next authentication method: keyboard-interactive&lt;BR /&gt;debug2: userauth_kbdint&lt;BR /&gt;debug2: we sent a keyboard-interactive packet, wait for reply&lt;BR /&gt;debug2: input_userauth_info_req&lt;BR /&gt;debug2: input_userauth_info_req: num_prompts 1&lt;BR /&gt;Password:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 13:34:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381979#M476505</guid>
      <dc:creator>Michele Albertone</dc:creator>
      <dc:date>2011-11-04T13:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381983#M476506</link>
      <description>&lt;P&gt;Check the /var/adm/syslog/syslog.log file for SSH errors.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If public keys are set up correctly, the problem is almost always related to permissions somewhere.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 13:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381983#M476506</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2011-11-04T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381991#M476507</link>
      <description>&lt;P&gt;Thanks Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;checked in syslog before but no information logged&amp;nbsp;&amp;nbsp;before the passowrd prompt is displayed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did the same steps on a similar box, same SW level and it worked as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 13:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381991#M476507</guid>
      <dc:creator>Michele Albertone</dc:creator>
      <dc:date>2011-11-04T13:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381999#M476508</link>
      <description>&lt;P&gt;Got it,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my "/" was 777 instead of 755. After changint it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 14:12:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5381999#M476508</guid>
      <dc:creator>Michele Albertone</dc:creator>
      <dc:date>2011-11-04T14:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5382107#M476509</link>
      <description>&lt;P&gt;&amp;gt; checked in syslog before but no information logged [...]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; my "/" was 777 instead of 755. After changint it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; And there was nothing helpful in the system log file on the server&lt;BR /&gt;system?&amp;nbsp; Really?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; You do need to look at the log file on the _server_, not on the&lt;BR /&gt;client.&amp;nbsp; What, exactly, did "in syslog" mean to you?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2011 16:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5382107#M476509</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-11-04T16:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot passwordlessly ssh using root</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5392053#M476691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in this case I was ssh'ng to the same server I was alraedy logged on so that client and server were the same. I checked on /var/adm/syslog/syslog.log and could not find anything during my ssh attempt. Similarly the verbose info on ssh did not point me to the right direction, not sure if this deals with security/privacy reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2011 07:53:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-passwordlessly-ssh-using-root/m-p/5392053#M476691</guid>
      <dc:creator>Michele Albertone</dc:creator>
      <dc:date>2011-11-16T07:53:59Z</dc:date>
    </item>
  </channel>
</rss>

