Transfer the Public Key¶
The following methods can be used to install the public key on the OpenVMS server:
Note
Password authentication is required for this step.
sftp OpenVMS
user@OpenVMS's password:
sftp> cd ssh2
sftp> put id_rsa_sshcom.pub
Uploading id_rsa_sshcom.pub to /SYS$SYSDEVICE/user/ssh2/id_rsa_sshcom.pub
id_rsa_sshcom.pub 100% 512 0.5KB/s 00:00
sftp> quit
Display the key:
cat id_rsa_sshcom.pub
On the OpenVMS system, open or create the public key file in the ssh2 directory:
$ SET DEF SYS$LOGIN:
$ SET DEF [.SSH2]
$ EDIT/EDT ID_RSA_SSHCOM.PUB
Copy the entire contents of id_rsa_sshcom.pub from the OpenSSH client and paste it into the editor on the OpenVMS system. Save the file and exit the editor.