• Viewing SSH users on VMS

    From Chris Townley@21:1/5 to All on Sat Jul 27 18:34:39 2024
    On AXP ssh uses show as FT terminals, and the source can be seen, and
    accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
    OpenVMS User Processes at 27-JUL-2024 18:24:48.74
    Total number of users = 2, number of processes = 2

    Username Process Name PID Terminal
    SYSTEM SYS_SYSTEM_01 0000012B OPA0:
    TOWNLEYC CCT_TOWNLEYC_01 0000012A FTA1:(ssh/merlin.fritz.box:50407)

    However on X86 TT_ACPORNAM is blank, and I can find no method of seeing
    where they come from. OK it is probably me as it is always local, so it
    is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
    OpenVMS User Processes at 27-JUL-2024 18:29:41.86
    Total number of users = 2, number of processes = 5

    Username Process Name PID Terminal
    SYSTEM SYSTEM 00000431 OPA0:
    TOWNLEYC FTA12_TOWNLEYC 0000044C FTA12:
    TOWNLEYC FTA13_TOWNLEYC 0000044E FTA13:
    TOWNLEYC FTA14_TOWNLEYC 00000450 FTA14:
    TOWNLEYC TOWNLEYC 00000448 FTA11:

    Any ideas how I could get this information?

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig A. Berry@21:1/5 to Chris Townley on Sat Jul 27 15:54:38 2024
    On 7/27/24 12:34 PM, Chris Townley wrote:
    On AXP ssh uses show as FT terminals, and the source can be seen, and accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
          OpenVMS User Processes at 27-JUL-2024 18:24:48.74
        Total number of users = 2,  number of processes = 2

    Username  Process Name       PID     Terminal
    SYSTEM    SYS_SYSTEM_01    0000012B  OPA0:
    TOWNLEYC  CCT_TOWNLEYC_01  0000012A  FTA1:(ssh/merlin.fritz.box:50407)

    However on X86 TT_ACPORNAM is blank, and I can find no method of seeing
    where they come from. OK it is probably me as it is always local, so it
    is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
          OpenVMS User Processes at 27-JUL-2024 18:29:41.86
        Total number of users = 2,  number of processes = 5

     Username  Process Name      PID     Terminal
     SYSTEM    SYSTEM          00000431  OPA0:
     TOWNLEYC  FTA12_TOWNLEYC  0000044C  FTA12:
     TOWNLEYC  FTA13_TOWNLEYC  0000044E  FTA13:
     TOWNLEYC  FTA14_TOWNLEYC  00000450  FTA14:
     TOWNLEYC  TOWNLEYC        00000448  FTA11:

    Any ideas how I could get this information?


    I don't know, but I suspect the difference is OpenSSH versus the old
    TCP/IP services SSH rather than platform.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to Craig A. Berry on Sat Jul 27 16:58:34 2024
    On 7/27/2024 4:54 PM, Craig A. Berry wrote:
    On 7/27/24 12:34 PM, Chris Townley wrote:
    On AXP ssh uses show as FT terminals, and the source can be seen, and
    accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:24:48.74
         Total number of users = 2,  number of processes = 2

    Username  Process Name       PID     Terminal
    SYSTEM    SYS_SYSTEM_01    0000012B  OPA0:
    TOWNLEYC  CCT_TOWNLEYC_01  0000012A  FTA1:(ssh/merlin.fritz.box:50407)

    However on X86 TT_ACPORNAM is blank, and I can find no method of
    seeing where they come from. OK it is probably me as it is always
    local, so it is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:29:41.86
         Total number of users = 2,  number of processes = 5

      Username  Process Name      PID     Terminal
      SYSTEM    SYSTEM          00000431  OPA0:
      TOWNLEYC  FTA12_TOWNLEYC  0000044C  FTA12:
      TOWNLEYC  FTA13_TOWNLEYC  0000044E  FTA13:
      TOWNLEYC  FTA14_TOWNLEYC  00000450  FTA14:
      TOWNLEYC  TOWNLEYC        00000448  FTA11:

    Any ideas how I could get this information?


    I don't know, but I suspect the difference is OpenSSH versus the old
    TCP/IP services SSH rather than platform.

    Seems very likely.

    OpenSSH is *nix code, so it does not set that thing in the
    original code.

    VSI obvious can and probably should add it to the VMS port.

    Arne

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to Craig A. Berry on Sat Jul 27 23:59:46 2024
    On 27/07/2024 21:54, Craig A. Berry wrote:

    On 7/27/24 12:34 PM, Chris Townley wrote:
    On AXP ssh uses show as FT terminals, and the source can be seen, and
    accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:24:48.74
         Total number of users = 2,  number of processes = 2

    Username  Process Name       PID     Terminal
    SYSTEM    SYS_SYSTEM_01    0000012B  OPA0:
    TOWNLEYC  CCT_TOWNLEYC_01  0000012A  FTA1:(ssh/merlin.fritz.box:50407)

    However on X86 TT_ACPORNAM is blank, and I can find no method of
    seeing where they come from. OK it is probably me as it is always
    local, so it is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:29:41.86
         Total number of users = 2,  number of processes = 5

      Username  Process Name      PID     Terminal
      SYSTEM    SYSTEM          00000431  OPA0:
      TOWNLEYC  FTA12_TOWNLEYC  0000044C  FTA12:
      TOWNLEYC  FTA13_TOWNLEYC  0000044E  FTA13:
      TOWNLEYC  FTA14_TOWNLEYC  00000450  FTA14:
      TOWNLEYC  TOWNLEYC        00000448  FTA11:

    Any ideas how I could get this information?


    I don't know, but I suspect the difference is OpenSSH versus the old
    TCP/IP services SSH rather than platform.

    Possibly. Actually my AXP instance uses TCPWare, but I distinctly
    remember using TCP/IP Services on I64 at work, and on my AXP machine
    here before I upgraded to the VSI version. The odd one out is definitely X86

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to Lawrence D'Oliveiro on Sat Jul 27 19:03:15 2024
    On 7/27/2024 6:36 PM, Lawrence D'Oliveiro wrote:
    On Sat, 27 Jul 2024 16:58:34 -0400, Arne Vajhøj wrote:
    VSI obvious can and probably should add it to the VMS port.

    For “port” read “fork”.

    Unless these sorts of changes get accepted upstream, you end up with the burden of maintaining your own parallel version, and keeping up with
    upstream developments.

    Somehow, I don’t think they have the resources for that.

    For a product that is important security wise it makes
    sense to keep up.

    And I don't think it should be that bad. 30 years ago one
    would create and reapply diffs. Today I believe Git can handle
    it.

    Arne

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to All on Sun Jul 28 00:13:52 2024
    On 28/07/2024 00:03, Arne Vajhøj wrote:
    On 7/27/2024 6:36 PM, Lawrence D'Oliveiro wrote:
    On Sat, 27 Jul 2024 16:58:34 -0400, Arne Vajhøj wrote:
    VSI obvious can and probably should add it to the VMS port.

    For “port” read “fork”.

    Unless these sorts of changes get accepted upstream, you end up with the
    burden of maintaining your own parallel version, and keeping up with
    upstream developments.

    Somehow, I don’t think they have the resources for that.

    For a product that is important security wise it makes
    sense to keep up.

    And I don't think it should be that bad. 30 years ago one
    would create and reapply diffs. Today I believe Git can handle
    it.

    Arne


    It does worry me a bit that VSI are making their own versions of these packages, rather than putting them back into the packages as VMS
    variants, that they will maintain within the package. Surely that would
    imply commitment to the package, as well as the platform

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to All on Sat Jul 27 22:36:33 2024
    On Sat, 27 Jul 2024 16:58:34 -0400, Arne Vajhøj wrote:

    VSI obvious can and probably should add it to the VMS port.

    For “port” read “fork”.

    Unless these sorts of changes get accepted upstream, you end up with the
    burden of maintaining your own parallel version, and keeping up with
    upstream developments.

    Somehow, I don’t think they have the resources for that.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Daniel@21:1/5 to Chris Townley on Sun Jul 28 09:10:05 2024
    On 28/7/2024 08:29, Chris Townley wrote:
    On 27/07/2024 21:54, Craig A. Berry wrote:

    On 7/27/24 12:34 PM, Chris Townley wrote:
    On AXP ssh uses show as FT terminals, and the source can be seen, and
    accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:24:48.74
         Total number of users = 2,  number of processes = 2

    Username  Process Name       PID     Terminal
    SYSTEM    SYS_SYSTEM_01    0000012B  OPA0:
    TOWNLEYC  CCT_TOWNLEYC_01  0000012A  FTA1:(ssh/merlin.fritz.box:50407) >>>
    However on X86 TT_ACPORNAM is blank, and I can find no method of
    seeing where they come from. OK it is probably me as it is always
    local, so it is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:29:41.86
         Total number of users = 2,  number of processes = 5

      Username  Process Name      PID     Terminal
      SYSTEM    SYSTEM          00000431  OPA0:
      TOWNLEYC  FTA12_TOWNLEYC  0000044C  FTA12:
      TOWNLEYC  FTA13_TOWNLEYC  0000044E  FTA13:
      TOWNLEYC  FTA14_TOWNLEYC  00000450  FTA14:
      TOWNLEYC  TOWNLEYC        00000448  FTA11:

    Any ideas how I could get this information?


    I don't know, but I suspect the difference is OpenSSH versus the old
    TCP/IP services SSH rather than platform.

    Possibly. Actually my AXP instance uses TCPWare, but I distinctly
    remember using  TCP/IP Services on I64 at work, and on my AXP machine
    here before I upgraded to the VSI version. The odd one out is definitely
    X86

    WASD's DCLinabox does this on (VSI) Alpha and Itanium.

    Quoted to circumvent wrapping:

    https://wasd.vsm.com.au/cgi-bin/liner/wasd_root/src/dclinabox/dclinabox.c#78 https://wasd.vsm.com.au/cgi-bin/liner/wasd_root/src/dclinabox/dclinabox.c#2814
    https://wasd.vsm.com.au/cgi-bin/liner/wasd_root/src/dclinabox/dclinabox.c#2868

    Does NOT WORK under:

    X86VMS$ cc/version
    VSI C x86-64 V7.5-009 (GEM 50XBR) on OpenVMS x86_64 V9.2-2

    Perhaps some x86 VMS infrastructure missing, DCLinabox code revision
    needed, ... ? (Apart from this haven't delved in inner modes at all.)

    --
    Anyone, who using social-media, forms an opinion regarding anything
    other than the relative cuteness of this or that puppy-dog, needs
    seriously to examine their critical thinking.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Arne_Vajh=C3=B8j?=@21:1/5 to Chris Townley on Sat Jul 27 19:20:00 2024
    On 7/27/2024 7:13 PM, Chris Townley wrote:
    On 28/07/2024 00:03, Arne Vajhøj wrote:
    On 7/27/2024 6:36 PM, Lawrence D'Oliveiro wrote:
    On Sat, 27 Jul 2024 16:58:34 -0400, Arne Vajhøj wrote:
    VSI obvious can and probably should add it to the VMS port.

    For “port” read “fork”.

    Unless these sorts of changes get accepted upstream, you end up with the >>> burden of maintaining your own parallel version, and keeping up with
    upstream developments.

    Somehow, I don’t think they have the resources for that.

    For a product that is important security wise it makes
    sense to keep up.

    And I don't think it should be that bad. 30 years ago one
    would create and reapply diffs. Today I believe Git can handle
    it.

    It does worry me a bit that VSI are making their own versions of these packages, rather than putting them back into the packages as VMS
    variants, that they will maintain within the package. Surely that would
    imply commitment to the package, as well as the platform

    It makes sense for VSI to provide builds of something like
    OpenSSH and ship with VMS. It is expected functionality
    and "go get something from the internet" may not work well
    for all VMS customers.

    Ideally the VMS changes should be sent upstream so that VMS
    is an out-of-the-box supported platform.

    But there can be many reasons why that may not have happened.
    Maybe VSI did not prioritize it. Maybe the upstream
    project rejected the VMS changes.

    My understanding is that VMS support and upstream projects
    are not always easy. Sometimes it requires diplomacy at a
    high level.

    But VSI should definitely try.

    Arne

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Mark Daniel on Sun Jul 28 00:35:50 2024
    On Sun, 28 Jul 2024 09:10:05 +0930, Mark Daniel wrote:

    Perhaps some x86 VMS infrastructure missing, DCLinabox code revision
    needed, ... ?

    Not only has that code not been revised in a while, seems like the server it’s on has suffered some bitrot <https://wasd.vsm.com.au/cgi-bin/liner/>.

    Does it do client-side SSL/TLS verification? That would be a good way of locking things down further. At a quick glance, the answer is no.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig A. Berry@21:1/5 to All on Sun Jul 28 07:55:44 2024
    On 7/27/24 6:20 PM, Arne Vajhøj wrote:
    On 7/27/2024 7:13 PM, Chris Townley wrote:
    On 28/07/2024 00:03, Arne Vajhøj wrote:
    On 7/27/2024 6:36 PM, Lawrence D'Oliveiro wrote:
    On Sat, 27 Jul 2024 16:58:34 -0400, Arne Vajhøj wrote:
    VSI obvious can and probably should add it to the VMS port.

    For “port” read “fork”.

    Unless these sorts of changes get accepted upstream, you end up with
    the
    burden of maintaining your own parallel version, and keeping up with
    upstream developments.

    Somehow, I don’t think they have the resources for that.

    It takes a lot more resources to have ongoing involvement with upstream
    than it does to do a drive-by port that gets updated in a year or three
    (or longer). The latter is how all of DEC/Compaq/HP(E)/VSI have usually
    done things, and it has led to some awfully stale products being the
    best available.

    For a product that is important security wise it makes
    sense to keep up.

    And I don't think it should be that bad. 30 years ago one
    would create and reapply diffs. Today I believe Git can handle
    it.

    It does worry me a bit that VSI are making their own versions of these
    packages, rather than putting them back into the packages as VMS
    variants, that they will maintain within the package. Surely that
    would imply commitment to the package, as well as the platform

    It makes sense for VSI to provide builds of something like
    OpenSSH and ship with VMS. It is expected functionality
    and "go get something from the internet" may not work well
    for all VMS customers.

    Ideally the VMS changes should be sent upstream so that VMS
    is an out-of-the-box supported platform.

    But there can be many reasons why that may not have happened.
    Maybe VSI did not prioritize it. Maybe the upstream
    project rejected the VMS changes.

    My understanding is that VMS support and upstream projects
    are not always easy. Sometimes it requires diplomacy at a
    high level.

    But VSI should definitely try.

    I believe they have said (unofficially) they will do that for LLVM and
    have had good interactions with the upstream developers at conferences
    and what-not. I haven't seen statements for other products. For security-related things like OpenSSL and OpenSSH they do need to be able
    to incorporate and release updates quickly, which would be a lot easier
    if they stayed up-to-date and had continuous builds running so
    everything was already ready-to-go when a critical fix comes along.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Scott Dorsey@21:1/5 to Craig A. Berry on Sun Jul 28 13:27:09 2024
    Craig A. Berry <craigberry@nospam.mac.com> wrote:
    I believe they have said (unofficially) they will do that for LLVM and
    have had good interactions with the upstream developers at conferences
    and what-not. I haven't seen statements for other products. For >security-related things like OpenSSL and OpenSSH they do need to be able
    to incorporate and release updates quickly, which would be a lot easier
    if they stayed up-to-date and had continuous builds running so
    everything was already ready-to-go when a critical fix comes along.

    OpenSSH is kind of a special case since it was not too long ago they
    they, with great fanfare, stripped out a lot of code from their
    distribution including the VMS support.
    --scott

    --
    "C'est un Nagra. C'est suisse, et tres, tres precis."

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig A. Berry@21:1/5 to Scott Dorsey on Sun Jul 28 09:04:01 2024
    On 7/28/24 8:27 AM, Scott Dorsey wrote:
    Craig A. Berry <craigberry@nospam.mac.com> wrote:
    I believe they have said (unofficially) they will do that for LLVM and
    have had good interactions with the upstream developers at conferences
    and what-not. I haven't seen statements for other products. For
    security-related things like OpenSSL and OpenSSH they do need to be able
    to incorporate and release updates quickly, which would be a lot easier
    if they stayed up-to-date and had continuous builds running so
    everything was already ready-to-go when a critical fix comes along.

    OpenSSH is kind of a special case since it was not too long ago they
    they, with great fanfare, stripped out a lot of code from their
    distribution including the VMS support.

    I don't think there was any long-standing VMS support in OpenSSH. Maybe
    you are thinking of LibreSSL, which jettisoned a lot of things,
    including anything VMS-specific, when it forked from OpenSSL.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Craig A. Berry@21:1/5 to Lawrence D'Oliveiro on Sun Jul 28 21:08:40 2024
    On 7/28/24 7:28 PM, Lawrence D'Oliveiro wrote:
    On Sun, 28 Jul 2024 09:04:01 -0500, Craig A. Berry wrote:

    I don't think there was any long-standing VMS support in OpenSSH. Maybe
    you are thinking of LibreSSL, which jettisoned a lot of things,
    including anything VMS-specific, when it forked from OpenSSL.

    There is only one reason why an open-source project might drop support for
    a platform: because they can’t find any contributors willing to maintain it.

    That was not a reason for what LibreSSL did.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Craig A. Berry on Mon Jul 29 00:28:57 2024
    On Sun, 28 Jul 2024 09:04:01 -0500, Craig A. Berry wrote:

    I don't think there was any long-standing VMS support in OpenSSH. Maybe
    you are thinking of LibreSSL, which jettisoned a lot of things,
    including anything VMS-specific, when it forked from OpenSSL.

    There is only one reason why an open-source project might drop support for
    a platform: because they can’t find any contributors willing to maintain
    it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Simon Clubley@21:1/5 to Craig A. Berry on Mon Jul 29 12:31:04 2024
    On 2024-07-28, Craig A. Berry <craigberry@nospam.mac.com> wrote:
    On 7/28/24 7:28 PM, Lawrence D'Oliveiro wrote:
    On Sun, 28 Jul 2024 09:04:01 -0500, Craig A. Berry wrote:

    I don't think there was any long-standing VMS support in OpenSSH. Maybe >>> you are thinking of LibreSSL, which jettisoned a lot of things,
    including anything VMS-specific, when it forked from OpenSSL.

    There is only one reason why an open-source project might drop support for >> a platform: because they can?t find any contributors willing to maintain
    it.

    That was not a reason for what LibreSSL did.

    You are correct. I remember the attitude of "stripping out all the
    junk and getting back to this pure product".

    I did find the following pages with a quick search and which compare the two:

    https://subscription.packtpub.com/book/security/9781800560345/2/ch02lvl1sec10/comparing-openssl-with-libressl
    https://news.ycombinator.com/item?id=25346355

    Simon.

    --
    Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
    Walking destinations on a map are further away than they appear.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hunter Goatley@21:1/5 to Craig A. Berry on Mon Jul 29 12:20:59 2024
    On 7/28/2024 10:08 PM, Craig A. Berry wrote:
    On 7/28/24 7:28 PM, Lawrence D'Oliveiro wrote:
    There is only one reason why an open-source project might drop support
    for
    a platform: because they can’t find any contributors willing to maintain >> it.

    That was not a reason for what LibreSSL did.

    Nor was it the reason 30 years ago when I tried repeatedly to feed my
    VMS changes back to GNU sed and GNU grep. They clearly were not
    interested in my changes, as they initially declined, then later
    ignored, my attempts, and I eventually stopped trying.

    Hunter
    ------
    Hunter Goatley, Process Software, https://www.process.com/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to Hunter Goatley on Mon Jul 29 21:39:34 2024
    On Mon, 29 Jul 2024 12:20:59 -0400, Hunter Goatley wrote:

    Nor was it the reason 30 years ago when I tried repeatedly to feed my
    VMS changes back to GNU sed and GNU grep. They clearly were not
    interested in my changes, as they initially declined, then later
    ignored, my attempts, and I eventually stopped trying.

    30 years ago would also have been when the Linux folks tried to do the
    same sort of thing, with their libc patches. And they were ignored, too.

    They got their revenge by being so spectacularly successful, the GNU folks
    were ultimately forced to embrace them. And so we had the transition from
    the Linux-specific libc5 fork to the GNU-official libc6.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to David Jones on Wed Jul 31 17:31:33 2024
    On 31/07/2024 15:02, David Jones wrote:
    On 7/27/2024 1:34 PM, Chris Townley wrote:
    On AXP ssh uses show as FT terminals, and the source can be seen, and
    accessed using the DVI code TT_ACCPORNAM. for example on AXP I see:

    $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:24:48.74
         Total number of users = 2,  number of processes = 2

    Username  Process Name       PID     Terminal
    SYSTEM    SYS_SYSTEM_01    0000012B  OPA0:
    TOWNLEYC  CCT_TOWNLEYC_01  0000012A  FTA1:(ssh/merlin.fritz.box:50407)

    However on X86 TT_ACPORNAM is blank, and I can find no method of
    seeing where they come from. OK it is probably me as it is always
    local, so it is perhaps not that important. But I do like a challenge!

    Currently I just see:

    1 $ sh u /f/i
           OpenVMS User Processes at 27-JUL-2024 18:29:41.86
         Total number of users = 2,  number of processes = 5

      Username  Process Name      PID     Terminal
      SYSTEM    SYSTEM          00000431  OPA0:
      TOWNLEYC  FTA12_TOWNLEYC  0000044C  FTA12:
      TOWNLEYC  FTA13_TOWNLEYC  0000044E  FTA13:
      TOWNLEYC  FTA14_TOWNLEYC  00000450  FTA14:
      TOWNLEYC  TOWNLEYC        00000448  FTA11:

    Any ideas how I could get this information?


    The best I could do was make my personal finger program do this for
    SSH connections (terminal FTA1):

                              FINGER Version 4.9
    Wed  31-JUL-2024 09:18         HOBBY::          Up Since Fri
    26-JUL-2024 00:36
    Job counts: Interactive = 5, Network = 4, Detached = 3

    Username     Name                 Image        Line    Location
    ----------   -------------------- ------------ ------- -------------------------
    JONESD       David Jones          < DCL >      FTA1:   PTY (SSHD22_BG7584)
                   ""                 TCPIP$UCP    VTA1:   Host:
    192.168.1.55 Port:
                   ""                 < DCL >      VTA2:   Host:
    192.168.1.55 Port:
                   ""                 < DCL >      OPA0:   Unknown for OPA0:
                   ""                 finger_x86   VTA3:   Host:
    192.168.1.179 Port: --------------------------------------------------------------------------------

    It uses $GETDVI to get the LOCKID value for the terminal, which the PTY driver
    re-purposes to hold the ipid of that pseudoterminal's control process.
    It then
    calls EXE$IPID_TO_EPID from exec mode to get an epid we can use with
    $GETJPI to
    fetch its process name (SSHD22_BG7584). I never found a way to get the
    remote
    connect information from the name of the TCPIP device (assuming the
    process name
    reliably reflected it).

    Thanks, that is interesting. Of course in the past the source node, and
    user was put into the terminals TT_ACCPORNAM, so easy to get.

    What I have discovered, which could make getting the parent PID
    unnecessary, is that a log file is created in SSH$ROOT:[VAR] named either

    <this_hostname>_<remote host or IP address>_<process_PID>.log
    or
    <remote host or IP address>_<process_PID>.log

    but unless the login fails, nothing is written.

    No idea why or when which form is used.

    Can I presume that a PID will be unique until a system reboot? If so I
    could delete/rename these logs at system startup, then look for the
    file, at least to get the remote node, and add to the process name.

    Otherwise maybe I cold hack the client startup to create a readable file
    with remote node and user?

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to David Jones on Wed Jul 31 20:59:02 2024
    On 31/07/2024 20:40, David Jones wrote:
    On 7/31/2024 2:36 PM, Chris Townley wrote:
    On 31/07/2024 17:31, Chris Townley wrote:
    Interestingly SYS$REM_NODE and SYS$REM_NODE_FULLNAME are both set to
    the remote IP address, but SYS$REM_ID is set to the local, not the
    remote username.


    Equally interesting: the SSHDxx_BGnnn process that controls the PTY has SYS$REM_NODE/SYS$REM_NODE_FULLNAME
    set to the actual hostname of the remote host instead of the IP address. SYS$REM_ID is set to SSH$SSH.


    So I could create a 'run' file with these - the remote user is already available to the SSHDxx_BGnnn process.

    I will see where I can slot it in!

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to Chris Townley on Wed Jul 31 19:36:57 2024
    On 31/07/2024 17:31, Chris Townley wrote:

    <snip>

    What I have discovered, which could make getting the parent PID
    unnecessary, is that a log file is created in SSH$ROOT:[VAR] named either

    <this_hostname>_<remote host or IP address>_<process_PID>.log
    or
    <remote host or IP address>_<process_PID>.log

    but unless the login fails, nothing is written.

    No idea why or when which form is used.

    Can I presume that a PID will be unique until a system reboot? If so I
    could delete/rename these logs at system startup, then look for the
    file, at least to get the remote node, and add to the process name.

    Otherwise maybe I cold hack the client startup to create a readable file
    with remote node and user?


    Interestingly SYS$REM_NODE and SYS$REM_NODE_FULLNAME are both set to the
    remote IP address, but SYS$REM_ID is set to the local, not the remote
    username.

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis Boone@21:1/5 to All on Thu Aug 1 01:40:35 2024
    Equally interesting: the SSHDxx_BGnnn process that controls the PTY has SYS$REM_NODE/SYS$REM_NODE_FULLNAME set to the actual hostname of the
    remote host instead of the IP address.

    SSH privilege separation?

    De

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Robert A. Brooks@21:1/5 to bill on Thu Aug 1 09:33:57 2024
    On 8/1/2024 8:15 AM, bill wrote:
    On 7/31/2024 3:40 PM, David Jones wrote:
    On 7/31/2024 2:36 PM, Chris Townley wrote:
    On 31/07/2024 17:31, Chris Townley wrote:
    Interestingly SYS$REM_NODE and SYS$REM_NODE_FULLNAME are both set to the remote IP address, but SYS$REM_ID is set to the local, not the remote username.


    Equally interesting: the SSHDxx_BGnnn process that controls the PTY has SYS$REM_NODE/SYS$REM_NODE_FULLNAME
    set to the actual hostname of the remote host instead of the IP address. SYS$REM_ID is set to SSH$SSH.


    Could that be that VMS either does or intended SSH to be usable over
    DECNET where there would not have been an IP address?
    No.

    --
    -- Rob

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lawrence D'Oliveiro@21:1/5 to bill on Thu Aug 1 23:00:31 2024
    On Thu, 1 Aug 2024 12:17:00 -0400, bill wrote:

    On 8/1/2024 9:33 AM, Robert A. Brooks wrote:

    On 8/1/2024 8:15 AM, bill wrote:

    Could that be that VMS either does or intended SSH to be usable over
    DECNET where there would not have been an IP address?
     No.

    OK. I guess it was just wishful thinking. :-)

    What kind of person wishes they could use DECnet? ;)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dave Froble@21:1/5 to Lawrence D'Oliveiro on Thu Aug 1 23:42:33 2024
    On 8/1/2024 7:00 PM, Lawrence D'Oliveiro wrote:
    On Thu, 1 Aug 2024 12:17:00 -0400, bill wrote:

    On 8/1/2024 9:33 AM, Robert A. Brooks wrote:

    On 8/1/2024 8:15 AM, bill wrote:

    Could that be that VMS either does or intended SSH to be usable over
    DECNET where there would not have been an IP address?
    No.

    OK. I guess it was just wishful thinking. :-)

    What kind of person wishes they could use DECnet? ;)


    A person who has his VAXstation 4000 Model 90A disks backup to a disk on his AlphaServer 800 every morning at 4:00 AM. It just works.

    --
    David Froble Tel: 724-529-0450
    Dave Froble Enterprises, Inc. E-Mail: davef@tsoft-inc.com
    DFE Ultralights, Inc.
    170 Grimplin Road
    Vanderbilt, PA 15486

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Chris Townley@21:1/5 to David Jones on Mon Aug 5 00:53:17 2024
    On 04/08/2024 23:33, David Jones wrote:
    On 8/2/2024 11:52 AM, David Jones wrote:
    ... My goal now it to make a
    privileged program that SYLOGIN runs that retrieves SYS$REM_NODE and sets
    tt_accpornam.

    I built an ssh_set_location program base around ft_accpornam.mar exported functions (FTA_INITIALIZE(),FTA_SET_ACCPORNAM) and rewrote ft_accpornam in
    C. There's no VAX support for the C version, but it's slightly incredible that the same inner mode code works on both Alpha and x86_84 (the host I
    use to test IA64 appears be down).

    The location it reports is the login process's sys$rem_node translation.
    It would be nice if I could get the port number. As I recall, unless a
    BG device is marked SHARE, attempts to do I/O from anything but the
    owner process immediately shuts down the connection.

    As programs go, it's pretty short. If you want to inspect it, I've
    made a zip file available on my google drive:


    https://drive.google.com/file/d/1O90bqUEWTa6NnyIfLlkb05RvQwfQu9q4/view?usp=sharing

    Dave

    Thanks, I will take a look

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)