<?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 Problem with two-way key-based ssh connection in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948948#M84837</link>
    <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I am trying to set up a two-way key-based ssh connection. The idea here is to have the user on server 1 be able to log into server 2 using public/private key authentication and vice versa. &lt;BR /&gt;&lt;BR /&gt;The user is prompted for a password when he logs in from server 1 to server 2, which is incorrect, but is not prompted for a password when he logs in from server 2 to server 1, which is correct. &lt;BR /&gt;&lt;BR /&gt;The steps that I took so far are as follows:&lt;BR /&gt;1. created the rsa and dsa key pairs on server 1 as the user.&lt;BR /&gt;2. logged in as root on server 2 and created a user account like that on server 1.&lt;BR /&gt;3. copied the user's rsa and dsa public key files to server 2, and renamed the dsa public file to authorized_keys2.&lt;BR /&gt;4. verified there was no existing known_hosts file.&lt;BR /&gt;5. logged back into server 2 to create the known_hosts file.&lt;BR /&gt;6. modified the sshd_config file to have the lines: &lt;BR /&gt;Protocol 2&lt;BR /&gt;AuthorizedKeysFiles .ssh/authorized_keys2&lt;BR /&gt;7. modified the ssh_config file to have the line:&lt;BR /&gt;Protocol 2&lt;BR /&gt;8. stopped and restarted ssh on server 1 and server 2.&lt;BR /&gt;&lt;BR /&gt;I want to be able to log into server 2 from server 1 without password authentication. I can do that now from server 2 to server 1. What other steps do I need to take to correct this? Thanks.</description>
    <pubDate>Wed, 21 Feb 2007 12:53:24 GMT</pubDate>
    <dc:creator>Andrew Kaplan</dc:creator>
    <dc:date>2007-02-21T12:53:24Z</dc:date>
    <item>
      <title>Problem with two-way key-based ssh connection</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948948#M84837</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;I am trying to set up a two-way key-based ssh connection. The idea here is to have the user on server 1 be able to log into server 2 using public/private key authentication and vice versa. &lt;BR /&gt;&lt;BR /&gt;The user is prompted for a password when he logs in from server 1 to server 2, which is incorrect, but is not prompted for a password when he logs in from server 2 to server 1, which is correct. &lt;BR /&gt;&lt;BR /&gt;The steps that I took so far are as follows:&lt;BR /&gt;1. created the rsa and dsa key pairs on server 1 as the user.&lt;BR /&gt;2. logged in as root on server 2 and created a user account like that on server 1.&lt;BR /&gt;3. copied the user's rsa and dsa public key files to server 2, and renamed the dsa public file to authorized_keys2.&lt;BR /&gt;4. verified there was no existing known_hosts file.&lt;BR /&gt;5. logged back into server 2 to create the known_hosts file.&lt;BR /&gt;6. modified the sshd_config file to have the lines: &lt;BR /&gt;Protocol 2&lt;BR /&gt;AuthorizedKeysFiles .ssh/authorized_keys2&lt;BR /&gt;7. modified the ssh_config file to have the line:&lt;BR /&gt;Protocol 2&lt;BR /&gt;8. stopped and restarted ssh on server 1 and server 2.&lt;BR /&gt;&lt;BR /&gt;I want to be able to log into server 2 from server 1 without password authentication. I can do that now from server 2 to server 1. What other steps do I need to take to correct this? Thanks.</description>
      <pubDate>Wed, 21 Feb 2007 12:53:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948948#M84837</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2007-02-21T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with two-way key-based ssh connection</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948949#M84838</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;99.9% of the time its ownership and permissions on the user home directory and the .ssh directory.&lt;BR /&gt;&lt;BR /&gt;Or the files in .ssh&lt;BR /&gt;&lt;BR /&gt;Try making the ownership and permission on the non-working system patch the working system.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 21 Feb 2007 13:25:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948949#M84838</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-02-21T13:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with two-way key-based ssh connection</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948950#M84839</link>
      <description>Hi there --&lt;BR /&gt;&lt;BR /&gt;That seemed to do the trick. Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2007 14:21:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-with-two-way-key-based-ssh-connection/m-p/3948950#M84839</guid>
      <dc:creator>Andrew Kaplan</dc:creator>
      <dc:date>2007-02-21T14:21:00Z</dc:date>
    </item>
  </channel>
</rss>

