Linux and OpenVMS - How to setup an SSH trust
Description
This article details the operations needed to create an SSH trust between a Linux and a VMS server for the execution of remote commands from Linux to OpenVMS.
Usage example: To perform a clean VMS shutdown initiated by the charon server
Step-by-step guide
Notes
The prompts will tell you where to execute the commands, VMS$ (system user) or Linux# (root user)
Remember Linux/Unix is case sensitive, VMS is not
Linux: if VMS host is not known, add it to /etc/hosts (using .vi. or .nano. for example)
VMS: if Linux is not known, add it using: $ UCX SET HOST LINUX /ADDR=xx.xx.xx.xx
Enable SSH on the VMS server:
Select then:
Option 3 - Server components then enable and start service SSH, option 19then
Option 2 - Enable & Start service on this node
Generate the key on the Linux server and convert it to be readable by VMS
Copy the generated file
/root/.ssh/linuxserver.pub(or use copy/paste between putty session for example) to the VMS system in theSYS$SYSROOT:[SYSMGR.SSH2] directory
If this folder does not exist, create it using the following command:$ CREATE /DIRECTORY SYS$SYSROOT:[SYSMGR.SSH2]
On the VMS system add the Linux server key to the authorized keys:
Do not forget the dot at the end of the authorization file name
Perform some tests (examples)
Charon server name "charon", vms system name "pluto":
Links
HP OpenVMS Systems - SSH - Secure Shell
Related articles