<?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: sshd2_config and wildcarding AllowHosts? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522296#M49061</link>
    <description>Sorry Aaron but I've pretty much run out of ideas.  If you can't get a search pattern as simply as *.com to work then there's some fundamental difference between our versions that I'm not aware of.&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of is maybe it's checking the IP address instead of the host name.  If you're up to it try putting in the IP address of that host (###.###.###.###) to see if that works, then try the wildcards.  Probably would look like:&lt;BR /&gt;&lt;BR /&gt;###.###.*.*&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Apr 2005 08:29:07 GMT</pubDate>
    <dc:creator>Victor Semaska_3</dc:creator>
    <dc:date>2005-04-13T08:29:07Z</dc:date>
    <item>
      <title>sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522284#M49049</link>
      <description>Is there any way to provide a wildcard expression for the AllowHosts field?  I've got a site where they want to restrict access to their server to only hosts properly registered in our DNS.  However, doing a simple "localhost, *.s.com" doesn't work.  Looking around on the net, and I've found references to regex, egrep, and zsh_fileglob expressions, but haven't been able to get any of them to work.  And I've tried a lot of them, until my eyes blurred...&lt;BR /&gt;&lt;BR /&gt;The only wildcard I can get to work is "*".  I'd like to be a little less general than that.&lt;BR /&gt;&lt;BR /&gt;Has anyone gotten it to work with TCP/IP v5.4 ECO4?  Tips or tricks welcome...&lt;BR /&gt;&lt;BR /&gt;Aaron-who's-very-frustrated-with-U*X-lack-of-wildcards</description>
      <pubDate>Mon, 11 Apr 2005 13:22:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522284#M49049</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-11T13:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522285#M49050</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;according to The SSH Book (SSH, The Secure Shell: The Definitive Guide by Daniel J. Barrett, Richard Silverman; O'Reilly 2001; section 5.5.2.4) - to which the TCP/IP Services SSH manual refers the reader - the AllowHosts and DenyHosts values have the following syntax:&lt;BR /&gt;&lt;BR /&gt;- Values may contain regular expressions (see e.g. &lt;A href="http://h30097.www3.hp.com/docs/ssh/ssh32/MAN/MAN5/0001____.HTM" target="_blank"&gt;http://h30097.www3.hp.com/docs/ssh/ssh32/MAN/MAN5/0001____.HTM&lt;/A&gt; ).&lt;BR /&gt;&lt;BR /&gt;- Values may contain multiple strings separated by commas.&lt;BR /&gt;&lt;BR /&gt;- Keywords may appear multiple times, and the results are cumulative.&lt;BR /&gt;&lt;BR /&gt;- Hostnames or IP addresses may be used.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;  Martin</description>
      <pubDate>Tue, 12 Apr 2005 01:58:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522285#M49050</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2005-04-12T01:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522286#M49051</link>
      <description>Sorry, I should have let you know that I've already tried using that document, but still haven't gotten anything to work.&lt;BR /&gt;&lt;BR /&gt;What does work: localhost, node.company.dom, *&lt;BR /&gt;&lt;BR /&gt;A few samples of some others I've tried that don't work:&lt;BR /&gt;&lt;BR /&gt;*.company.dom&lt;BR /&gt;*company.dom&lt;BR /&gt;$company.dom&lt;BR /&gt;company.dom$&lt;BR /&gt;company.dom(1)&lt;BR /&gt;company.dom+&lt;BR /&gt;company.dom##&lt;BR /&gt;.*\.company\.dom&lt;BR /&gt;&lt;BR /&gt;and many, many more.&lt;BR /&gt;&lt;BR /&gt;I am completely ignorant of regexs, and am bamboozled by the plethora of regex varieties.   These "features" sure are making what should be a simple wildcard change incredibly difficult.&lt;BR /&gt;&lt;BR /&gt;Aaron</description>
      <pubDate>Tue, 12 Apr 2005 09:30:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522286#M49051</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T09:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522287#M49052</link>
      <description>Oh, btw, I've also tried:&lt;BR /&gt;&lt;BR /&gt; \i192.168.*&lt;BR /&gt;&lt;BR /&gt;No joy there, either.  Again, the only thing that worked was a FQDN, which is not a practical solution for me.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Aaron</description>
      <pubDate>Tue, 12 Apr 2005 09:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522287#M49052</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T09:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522288#M49053</link>
      <description>&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;A few samples of some others I've tried that don't work:&lt;BR /&gt;...&lt;BR /&gt;.*\.company\.dom&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;That last one looks like the regexes I know: ".*" = any number of any character; "\" is the escape character. Hmmm... this should have worked.&lt;BR /&gt;&lt;BR /&gt;I should admit at this point that my knowledge of this particular corner of SSH is academic.&lt;BR /&gt;&lt;BR /&gt;An even more accurate man page to SSH regexes than the one cited is &lt;A href="http://www.ssh.com/documents/32/sshregex.html" target="_blank"&gt;http://www.ssh.com/documents/32/sshregex.html&lt;/A&gt; (as TCP/IP Services SSH is based on SSH2 v2.4.1 from SSH Communication Security).&lt;BR /&gt;&lt;BR /&gt;cu,&lt;BR /&gt;  Martin</description>
      <pubDate>Tue, 12 Apr 2005 09:51:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522288#M49053</guid>
      <dc:creator>Martin Vorlaender</dc:creator>
      <dc:date>2005-04-12T09:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522289#M49054</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;I'm a former VMS Manager that was dragged, kicking and screaming, into the UNIX world (Tru64) so I understand your frustration.  I understand regexs a little so I might be able to help.&lt;BR /&gt;&lt;BR /&gt;I don't have a VMS system w/ SSH so I can't test things.  I did test things on one of my UNIX systems (Tru64 V5.1B).&lt;BR /&gt;&lt;BR /&gt;According to the manpage (that's on-line help in UNIX) for sshd_config field AllowHosts 'Patterns are matched using the egrep syntax'.&lt;BR /&gt;&lt;BR /&gt;That said your last example, '.*\.company\.dom' should have worked but didn't.  I tried a few variations and your 1st example worked for me, '*.company.dom'.  So it seems the documentation is wrong.&lt;BR /&gt;&lt;BR /&gt;I know this doesn't help you much but at least it points you in the right direction.  In the UNIX version there's a debug mode that I used to help track it down (-d 9).  Does the VMS version have a debug mode?&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2005 10:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522289#M49054</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2005-04-12T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522290#M49055</link>
      <description>Yup, been there too -- I googled that one and got a hit on the "zsh_fileglob".  (Who thinks up these names???)&lt;BR /&gt;&lt;BR /&gt;I worried it might not have been the correct implementation, because "node.company.dom" worked, while, IIRC, "node\.company\.dom" did not.  Ergo, I speculated that this particular doc rev and implementation of the regex was inappropriate for the version used on OpenVMS.&lt;BR /&gt;&lt;BR /&gt;Does anyone out there have any empirical info that they could share?  I appreciate your academic perspective, Martin, and it has helped to confirm that I was indeed on the right track.  But someone must have tried this before and gotten it to work, right?  I know I've failed at it!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Aaron</description>
      <pubDate>Tue, 12 Apr 2005 10:29:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522290#M49055</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522291#M49056</link>
      <description>Hi Vic,&lt;BR /&gt;&lt;BR /&gt;Thanks for understanding!  FWIW, I've "touched" a few U*X boxes, my first in the mid '80s (an Apollo Domain system!), and all the way up to Digital UNIX and even Linux.  But, well, IMHO it's still a collection of kludges...&lt;BR /&gt;&lt;BR /&gt;The idea about debug got me going.  I checked out the TCPIP$System:TCPIP$SSH_Run.com file, and there's a logical that if set, puts the daemon into "-i -d 99".  So I did it, kicked the daemon, and got a huge dump in the TCPIP$SSH_Home:TCPIP$SSH_Run.log file.  It's parsing for regexs in there (lots of parsing, no meaningful output that I could grok), but it still fails with the following error:&lt;BR /&gt;&lt;BR /&gt;Tue 12 10:42:48 WARNING: password authentication failed. Connection from woody.internal.company.dom denied. Authentication as user sakovich was attempted.&lt;BR /&gt;debug: Ssh2AuthCommonServer/AUTHS-COMMON.C:114: password authentication failed.&lt;BR /&gt;&lt;BR /&gt;Might this be a bug in the VMS implementation?&lt;BR /&gt;&lt;BR /&gt;Oh, I'm on my test workstation and am using the following style of regex right now:&lt;BR /&gt;&lt;BR /&gt;localhost, .*\..*\.company\.dom&lt;BR /&gt;&lt;BR /&gt;(In other words, I'm trying to allow any node from any child domain of company.dom.)  I've tried a variety of other strings, too.  It's nice to have a VMS workstation to test this stuff on!&lt;BR /&gt;&lt;BR /&gt;Thanks for the debug idea!  Still no joy, though.&lt;BR /&gt;&lt;BR /&gt;Aaron</description>
      <pubDate>Tue, 12 Apr 2005 11:00:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522291#M49056</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522292#M49057</link>
      <description>Aaron,&lt;BR /&gt;&lt;BR /&gt;As I mentioned, using the egrep syntax didn't work for me.  That's what you have listed:&lt;BR /&gt;&lt;BR /&gt;.*\..*\.company\.dom&lt;BR /&gt;&lt;BR /&gt;Did you try the other syntax of:&lt;BR /&gt;&lt;BR /&gt;*.*.company.dom&lt;BR /&gt;&lt;BR /&gt;May try small steps.  You said * did work.  Maybe next try *.dom to see if that works.  If so, go to *.company.dom, etc.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2005 11:32:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522292#M49057</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2005-04-12T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522293#M49058</link>
      <description>Great idea.  I just tried using "*.dom" and it failed, too.&lt;BR /&gt;&lt;BR /&gt;For thoroughness' sake, I also tried ".*\.dom", which failed too.&lt;BR /&gt;&lt;BR /&gt;*sigh*</description>
      <pubDate>Tue, 12 Apr 2005 11:45:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522293#M49058</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T11:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522294#M49059</link>
      <description>Can you post the line in sshd_config exactly as is.  Want to check the syntax.&lt;BR /&gt;&lt;BR /&gt;Also, can you post the relavent portions of the debug output.  On our UNIX systems, when it fails it's like this:&lt;BR /&gt;&lt;BR /&gt;debug[518770]: Ssh2AuthCommonServer/auths-common.c:102: match: NULL (pattern: 'c*.company.dom', string: 'sxxx.company.dom')&lt;BR /&gt;debug[518770]: Ssh2AuthCommonServer/auths-common.c:544: 'sxxxx.company.dom[###.###.###.###] didn't match with 'c*.company.dom'.&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Tue, 12 Apr 2005 11:53:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522294#M49059</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2005-04-12T11:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522295#M49060</link>
      <description>What I posted above *was* the exact output from the log.  I even searched for the "pattern" string, but there wasn't a single instance of it in the log.&lt;BR /&gt;&lt;BR /&gt;Here's a collection of the AllowHosts line from recent versions (Remember file versions?  Bet you miss them!) of the sshd2_config. to show you some of the things I've tried:&lt;BR /&gt;&lt;BR /&gt;        AllowHosts                      localhost, .*\.com&lt;BR /&gt;        AllowHosts                      localhost, *.com&lt;BR /&gt;        AllowHosts                      localhost, .*\..*\.int\.sungard\.com&lt;BR /&gt;        AllowHosts                      localhost, .*\.int\.sungard\.com&lt;BR /&gt;        AllowHosts                      localhost, *.int.sungard.com&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The host that I'm trying to connect from is woody.hsv.int.sungard.com.</description>
      <pubDate>Tue, 12 Apr 2005 14:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522295#M49060</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-12T14:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522296#M49061</link>
      <description>Sorry Aaron but I've pretty much run out of ideas.  If you can't get a search pattern as simply as *.com to work then there's some fundamental difference between our versions that I'm not aware of.&lt;BR /&gt;&lt;BR /&gt;The only thing I can think of is maybe it's checking the IP address instead of the host name.  If you're up to it try putting in the IP address of that host (###.###.###.###) to see if that works, then try the wildcards.  Probably would look like:&lt;BR /&gt;&lt;BR /&gt;###.###.*.*&lt;BR /&gt;&lt;BR /&gt;Vic&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Apr 2005 08:29:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522296#M49061</guid>
      <dc:creator>Victor Semaska_3</dc:creator>
      <dc:date>2005-04-13T08:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: sshd2_config and wildcarding AllowHosts?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522297#M49062</link>
      <description>Thanks Vic, I appreciate your input.&lt;BR /&gt;&lt;BR /&gt;I'm going to log a call with HP.  Sounds like a bug to me.</description>
      <pubDate>Wed, 13 Apr 2005 12:02:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sshd2-config-and-wildcarding-allowhosts/m-p/3522297#M49062</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2005-04-13T12:02:44Z</dc:date>
    </item>
  </channel>
</rss>

