Product Install Problem when trying to install OPENSSH

Having difficulties when installing the system? Your system runs slowly and requires some tweaking? You can get help here.

Topic author
cromwoli
Contributor
Posts: 24
Joined: Fri Apr 05, 2024 11:02 am
Reputation: 0
Status: Offline

Product Install Problem when trying to install OPENSSH

Post by cromwoli » Wed Jan 08, 2025 11:13 am

I am running my VMS system in a VM on a Linux (Mint) host. I want to use the X11 Forwarding function in OpenSSH, so I have downloaded the latest version of OpenSSH i.e. VSI-X86VMS-OPENSSH-0809-1J-1 to the Linux host, and extracted the 4 objects in the download. Then I copied all 4 objects over to my VMS system using the SCP command for e.g. scp X86VMS-OPENSSH-V0809-1J-1.PCSI$COMPRESSED_VNC' system@192.168.1.65: . All 4 objects were copied to my VMS system.
While logged onto my VMS system using the SYSTEM account I then attempted to install OPENSSH, using the command PRODUCT INSTALL OPENSSH from the command line. Attched is a screen dump of what happened next.

Please can anyone help me?
Attachments
Product Install Problem  SSH.png
Photo of terminal session

User avatar

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

Re: Product Install Problem when trying to install OPENSSH

Post by cct » Wed Jan 08, 2025 11:49 am

Looks like the VMS Zip di not extract correctly on Linux.
Much better to copy the ZIP file to the VMS instance, then unzip using the supplied UNZIP - set a symbol up:

$ UNZIP == "$SYS$COMMON:[SYSHLP.UNSUPPORTED.UNZIP]UNZIP.EXE"
$ ZIP == "$SYS$COMMON:[SYSHLP.UNSUPPORTED.ZIP]ZIP.EXE"

Also use UNZIP "-V"
Chris Townley
VMS Ambassador


sms
Senior Member
Posts: 525
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by sms » Wed Jan 08, 2025 5:28 pm

Code: Select all

> Looks like the VMS Zip di not extract correctly on Linux.

   It's inconceivable that it would.  The data could be fine, but any
VMS file attributes would be lost, and those file attributes are often
significant on VMS.

> Much better to copy the ZIP file to the VMS instance, then unzip [...]

   Where "Much better" is a euphemism for "Not absolutely doomed".
   
> [...] using the SCP command [...]

   I wouldn't expect SCP to preserve any VMS file attributes, either,
even between VMS systems.

>  Also use UNZIP "-V"

   UNZIP "-V"?  People keep suggesting that option.  I do not think it
means what you think it means.  As the "-h" Help says:

   Zip:

  -V   save VMS file attributes (-VV also save allocated blocks past EOF)

   UnZip:

  -X  restore owner/ACL protection info      -V  retain VMS version numbers


   When dealing with files where VMS file attributes are significant,
"-V" is important with _Zip_.  With UnZip, "-V" does not affect the
attributes of extracted files.  (I know of no way to get UnZip on VMS
_not_ to restore VMS file attributes on extracted files if they're
present in the archive.  But I also can't recall anyone ever complaining
about the absence of such a feature.)

User avatar

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

Re: Product Install Problem when trying to install OPENSSH

Post by cct » Wed Jan 08, 2025 5:50 pm

sms wrote:
Wed Jan 08, 2025 5:28 pm
> Looks like the VMS Zip di not extract correctly on Linux.

It's inconceivable that it would. The data could be fine, but any
VMS file attributes would be lost, and those file attributes are often
significant on VMS.

> Much better to copy the ZIP file to the VMS instance, then unzip [...]

Where "Much better" is a euphemism for "Not absolutely doomed".

> [...] using the SCP command [...]

I wouldn't expect SCP to preserve any VMS file attributes, either,
even between VMS systems.

> Also use UNZIP "-V"

UNZIP "-V"? People keep suggesting that option. I do not think it
means what you think it means. As the "-h" Help says:

Zip:

-V save VMS file attributes (-VV also save allocated blocks past EOF)

UnZip:

-X restore owner/ACL protection info -V retain VMS version numbers


When dealing with files where VMS file attributes are significant,
"-V" is important with _Zip_. With UnZip, "-V" does not affect the
attributes of extracted files. (I know of no way to get UnZip on VMS
_not_ to restore VMS file attributes on extracted files if they're
present in the archive. But I also can't recall anyone ever complaining
about the absence of such a feature.)
I have had occasions in the past when restoring a VMS ZIP file without the "-V" that it doesn't work, so I always use it
Chris Townley
VMS Ambassador


sms
Senior Member
Posts: 525
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by sms » Wed Jan 08, 2025 9:47 pm

> I have had occasions in the past when restoring a VMS ZIP file without
> the "-V" that it doesn't work, [...]

I doubt it. I claim that (in this respect, at least) these programs
behave as documented. If you can demonstrate a problem, then I'd be
interested in investigating it. In the mean time, I'd advise against
propagating this particular bit of folklore. It is widespread -- I've
seen it in VSI documentation, for example -- but it's wrong.

> [...] so I always use it

Because a typical archive doesn't contain multiple versions of a
file, specifying "-V" with UnZip is often harmless, but suggesting that
it's helpful with respect to file attributes is still wrong, and
distracts people from the actual function of UnZip "-V".


Topic author
cromwoli
Contributor
Posts: 24
Joined: Fri Apr 05, 2024 11:02 am
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by cromwoli » Wed Jan 22, 2025 1:16 pm

Thanks for the responses guys. I am however confused & now very unsure how I should install the version of OPENSSH I have downloaded, on my VMS VM from the extracted objects on my Linux Mint host. Presumably all the extracted objects need to be copied/sent or whatever onto my VMS VM so I can then install the product over the current version I have running there?
I am very unsure what to do next.
Thank you.

User avatar

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

Re: Product Install Problem when trying to install OPENSSH

Post by cct » Wed Jan 22, 2025 1:52 pm

First you need to delete the corrupt files, then copy just the .ZIP file onto the VMS Instance

Then use UNZIP to extract the files, then your PRODUCT INSTALL, ideally from the SYSTEM account, or at least one with the required privileges, as explained in the release notes
Chris Townley
VMS Ambassador


Topic author
cromwoli
Contributor
Posts: 24
Joined: Fri Apr 05, 2024 11:02 am
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by cromwoli » Wed Jan 22, 2025 1:58 pm

Thank you for your prompt reply. :D


sms
Senior Member
Posts: 525
Joined: Fri Aug 21, 2020 5:18 pm
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by sms » Wed Jan 22, 2025 2:26 pm

Code: Select all

> [...] from the extracted objects on my Linux Mint host. [...]

   No.  You should extract the zip archive contents _on_ the VMS system. 
(Where "should" is practically "must".)

      UNZIP == "$ SYS$COMMON:[SYSHLP.UNSUPPORTED.UNZIP]UNZIP.EXE"

      unzip <whatever>.zip


Topic author
cromwoli
Contributor
Posts: 24
Joined: Fri Apr 05, 2024 11:02 am
Reputation: 0
Status: Offline

Re: Product Install Problem when trying to install OPENSSH

Post by cromwoli » Wed Jan 22, 2025 2:51 pm

OK copied the .ZIP to my VMS VM and unzipped it successfully while logged onto to the system account. Will follow the Release notes now & install the product. Thank you for your help. :D

Post Reply