<?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: Detecting SSH Connections in LOGIN.COM in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260651#M60014</link>
    <description>&lt;!--!*#--&gt;Compare: F$GETDVI( "TT:", "TT_ACCPORNAM")</description>
    <pubDate>Wed, 27 Oct 2010 22:21:20 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2010-10-27T22:21:20Z</dc:date>
    <item>
      <title>Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260649#M60012</link>
      <description>I'd like to differentiate between a Telnet vs an SSH connection within LOGIN.COM&lt;BR /&gt;&lt;BR /&gt;So far, I see that Telnet connections assign a TN device, while SSH assigns an FT device, but FT can also represent other "virtual?" devices, so this won't work.&lt;BR /&gt;&lt;BR /&gt;I've worked out a massively kludgey method where:&lt;BR /&gt;&lt;BR /&gt;1) translate SYS$REM_NODE_FULLNAME to get remote node name&lt;BR /&gt;&lt;BR /&gt;2) use TCPIP SHOW HOST to convert name to IP address&lt;BR /&gt;&lt;BR /&gt;3) PIPE TCPIP SHO DEV | ( SEARCH SYS$PIPE ip-address ; @script-to-look-for-string-SSH-and-port#-22 )&lt;BR /&gt;&lt;BR /&gt;There's gotta be some way simpler way.  A F$GETDEV("TT","some-param") maybe?&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;&lt;BR /&gt;TIA</description>
      <pubDate>Wed, 27 Oct 2010 21:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260649#M60012</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2010-10-27T21:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260650#M60013</link>
      <description>Hi Jack,&lt;BR /&gt;&lt;BR /&gt;This is how we do it.&lt;BR /&gt;&lt;BR /&gt;$ term = f$getjpi(0,"TERMINAL")&lt;BR /&gt;$ if (term .eqs. "") .or. (f$length(term) .le. 3)&lt;BR /&gt;$   then exit&lt;BR /&gt;$ endif&lt;BR /&gt;$ if f$extract(0,3,term) .nes. "FTA" then exit                  ! SSH terminals are FTA devices&lt;BR /&gt;$ if .not. f$getdvi(term,"TT_SECURE") then exit                 ! but so are Decterm ones, so check the SECURE attrib of term&lt;BR /&gt;&lt;BR /&gt;Seems to do the trick.&lt;BR /&gt;Cheers,&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 27 Oct 2010 22:12:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260650#M60013</guid>
      <dc:creator>Chris Barratt</dc:creator>
      <dc:date>2010-10-27T22:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260651#M60014</link>
      <description>&lt;!--!*#--&gt;Compare: F$GETDVI( "TT:", "TT_ACCPORNAM")</description>
      <pubDate>Wed, 27 Oct 2010 22:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260651#M60014</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-10-27T22:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260652#M60015</link>
      <description>Jack,&lt;BR /&gt;&lt;BR /&gt;  I'd check: &lt;BR /&gt;  1) non-null SYS$REM_NODE&lt;BR /&gt;  2) F$GETDVI("TT","DEVCLASS") = DC$_TERM (66).&lt;BR /&gt;  3) F$GETDVI("TT","TT_SECURE")&lt;BR /&gt;&lt;BR /&gt;  I'm fairly sure all 3 will only be true for an SSH connection.&lt;BR /&gt;&lt;BR /&gt;  You could also check F$MODE(), but I'm not sure if it would add any value.</description>
      <pubDate>Wed, 27 Oct 2010 23:53:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260652#M60015</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2010-10-27T23:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260653#M60016</link>
      <description>If the system is running MultiNet, TCPware or Process Software's SSH for TCP/IP Services&lt;BR /&gt;then the following is the best way to tell:&lt;BR /&gt;Look for "ssh/" in the first part of tt_accpornam, as in:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output f$getdvi("tt:","tt_accpornam")&lt;BR /&gt;ssh/foo.bar.com:2338&lt;BR /&gt;&lt;BR /&gt;Check the logical MULTINET_KERNEL_BASE_ADDRESS to determine if MultiNet is running.&lt;BR /&gt;Check for the logical TCPWARE_NETCP_MBX to determine if TCPware is running.</description>
      <pubDate>Thu, 28 Oct 2010 12:55:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260653#M60016</guid>
      <dc:creator>Richard Whalen</dc:creator>
      <dc:date>2010-10-28T12:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting SSH Connections in LOGIN.COM</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260654#M60017</link>
      <description>Thanks - TT_SECURE was what I needed!</description>
      <pubDate>Thu, 28 Oct 2010 17:31:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/detecting-ssh-connections-in-login-com/m-p/5260654#M60017</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2010-10-28T17:31:06Z</dc:date>
    </item>
  </channel>
</rss>

