Configure the OpenVMS Server¶
These steps require an interactive login to OpenVMS.
-
Verify the public key format.
$ SET DEF SYS$LOGIN: $ SET DEF [.SSH2] $ @SYS$MANAGER:TCPIP$DEFINE_COMMANDS $ SSH_KEYGEN -"F" ID_RSA_SSHCOM.PUBIf a fingerprint is not returned, the key is not usable. Try Method A and/or Method B again. Contact appropriate support for further assistance.
-
Create the AUTHORIZATION file.
$ CREATE AUTHORIZATION. KEY ID_RSA_SSHCOM.PUB -
Set file protections.
$ SET FILE/PROT=(S,W,G,O:RE) AUTHORIZATION. $ SET FILE/PROT=(S,W,G,O:RE) ID_RSA_SSHCOM.PUB -
Test SFTP from the OpenSSH client.
sftp OpenVMSNote
No password prompt should appear if public key authentication is configured correctly.
Example:
sftp> pwd Remote working directory: /SYS$SYSDEVICE/USER