<?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: .shosts File in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5481219#M53474</link>
    <description>&lt;P&gt;Hi Matti,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is great. Thanks for your explanation. I got the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dewa&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2012 00:26:47 GMT</pubDate>
    <dc:creator>dewa</dc:creator>
    <dc:date>2012-01-12T00:26:47Z</dc:date>
    <item>
      <title>.shosts File</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479709#M53468</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using .shosts file for authentication between two Linux hosts.&amp;nbsp; In order to track the usage of this file, I plan to add a comment with "#" sign after this shosts entry. So the file looks like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#more .shosts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;serverA&amp;nbsp; user1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #For testing purposes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, after adding the comment with "#" sign, it's caused the passwordless is not working. Can anyone tell me how to add a comment in shosts file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Negara&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 06:44:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479709#M53468</guid>
      <dc:creator>dewa</dc:creator>
      <dc:date>2012-01-11T06:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: .shosts File</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479885#M53469</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why not using the following approach:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a local key using ssh-keygen, don't set a password and copy&lt;BR /&gt;your .ssh/identity.pub to .ssh/authorized_keys on the remote machine.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 09:49:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479885#M53469</guid>
      <dc:creator>Nighwish</dc:creator>
      <dc:date>2012-01-11T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: .shosts File</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479979#M53470</link>
      <description>&lt;P&gt;I looked at the sshd source code. In OpenSSH-5.9p1, the .rhosts and .shosts files are processed by the check_rhosts_file() function, which is located in source file auth-rhosts.c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I read the code correctly, comments are acceptable only if the comment character '#' is the first non-blank character on the line. If a comment is on the same line as a rhosts/shosts entry, the entire line will be ignored and if you have sshd in debug logging mode, you'll get a message "Found garbage in &amp;lt;filename&amp;gt;" in the debug output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, this should work:&lt;/P&gt;&lt;PRE&gt;# For testing purposes
serverA user1
# For other purposes
serverB user2&lt;BR /&gt;   # having space and/or tab characters before the comment sign should be acceptable too&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2012 11:21:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5479979#M53470</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2012-01-11T11:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: .shosts File</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5481219#M53474</link>
      <description>&lt;P&gt;Hi Matti,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is great. Thanks for your explanation. I got the idea.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dewa&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2012 00:26:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5481219#M53474</guid>
      <dc:creator>dewa</dc:creator>
      <dc:date>2012-01-12T00:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: .shosts File</title>
      <link>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5481229#M53475</link>
      <description>Hi Nighwish,&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Dewa</description>
      <pubDate>Thu, 12 Jan 2012 00:28:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/shosts-file/m-p/5481229#M53475</guid>
      <dc:creator>dewa</dc:creator>
      <dc:date>2012-01-12T00:28:42Z</dc:date>
    </item>
  </channel>
</rss>

