OPENSSH V8.9-1G bug - no access from detached processes

All types of networks, network stacks, and protocols supported by OpenVMS.
Post Reply

Topic author
malmberg
Contributor
Posts: 11
Joined: Tue Apr 16, 2024 7:55 pm
Reputation: 0
Status: Offline

OPENSSH V8.9-1G bug - no access from detached processes

Post by malmberg » Tue Jan 07, 2025 8:57 am

I setup a new Community Edition VMS 9.2-2 system for use from Jenkins for Continuous Integration (CI) automation.

The OPENSSH V8.9-1G program is broken in that it will not run commands issued from processes with out a terminal device connected.

A search of the internet reveals other instances of this, so I am not the only one that has seen it.

This is a serious limitation as it prevents many popular cloud management tools from being able to manage VMS systems.

This does not show up in on the VMS 8.4 systems with "VSI AXPVMS TCPIP V5.7-13ECO5F" or on earlier OpenVMS releases.

Code: Select all

ROBIN> type user_root:[jeeves]ssh$cmdrun.log;-2
%PURGE-I-FILPURG, USER_ROOT:[JEEVES]SSH$CMDRUN.LOG;231 deleted (4 blocks)
   "SYS$OUTPUT" = "_ROBIN$DKA100:" (LNM$PROCESS_TABLE)
   "SYS$ERROR" = "_ROBIN$DKA100:" (LNM$PROCESS_TABLE)
   "SYS$INPUT" = "_ROBIN$DKA100:" (LNM$PROCESS_TABLE)
  SSHD$SYS_NET = "_ROBIN$FTA247:0$dir/sec jenkins_root:[jeeves.aviary_robin_1.gnu_awk_current_x86_64_0922]build_base_vms_project.com"
  SSHD$INPUT_OUTPUT = "_ROBIN$FTA247:"
  SSHD$COMMAND = "dir/sec jenkins_root:[jeeves.aviary_robin_1.gnu_awk_current_x86_64_0922]build_base_vms_project.com"
  SSHD$FLAGS = "0"
  SSHD$X11BIT = 0   Hex = 00000000  Octal = 00000000000
%DIRECT-F-WRITEERR, error writing SYS$OUTPUT:.;
-RMS-E-DNR, device not ready, not mounted, or unavailable
%RMS-E-DNR, device not ready, not mounted, or unavailable
  JEEVES       job terminated at  4-JAN-2025 04:19:11.05

  Accounting information:
  Buffered I/O count:                281      Peak working set size:       5568
  Direct I/O count:                   53      Peak virtual size:         245920
  Page faults:                       535      Mounted volumes:                0
  Charged CPU time:        0 00:00:00.06      Elapsed time:       0 00:00:00.16
I was able to get Jenkins using using RSH as what I used to do for CI controlling VAX/VMS instead of SSH.

User avatar

cct
Master
Posts: 255
Joined: Sat Aug 15, 2020 9:00 am
Reputation: 0
Location: Cambridge, UK
Status: Offline

Re: OPENSSH V8.9-1G bug - no access from detached processes

Post by cct » Tue Jan 07, 2025 11:16 am

Interesting - it works for me in VMS9.2-3 with VSI X86VMS OPENSSH V8.9-1J
Chris Townley
VMS Ambassador

User avatar

dmjb
Valued Contributor
Posts: 88
Joined: Mon Aug 17, 2020 4:38 pm
Reputation: 0
Status: Offline

Re: OPENSSH V8.9-1G bug - no access from detached processes

Post by dmjb » Tue Jan 07, 2025 11:29 am

You may want to try updating to the latest OpenSSH kit in case it fixes the problem. The kit is available here: https://vmssoftware.com/products/openssh/
Last edited by dmjb on Tue Jan 07, 2025 11:31 am, edited 3 times in total.

Post Reply