Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Import SSH public key

SOLVED
Go to solution
smsc_1
Regular Advisor

Import SSH public key

Hello people,

I'm trying to import the SSH public key into OpenVMS IA64 Version V8.3-1H1

 

My goal will be SSH connect to OpenVMS machine from Windows using putty without insert any password.

I've no problem to connect from Windows to linux RedHat since I just export pub key to authorized_keys file. But I'm in trouble with OpenVMS.

 

On OpenVMS machine the SSH is already configured and accept connection without problem. I created the following directory:

SYS$SYSROOT:[SYSMGR.SSH2]

Inside that directory there is another directory:

SYS$SYSROOT:[SYSMGR.ssh2.hostkeys]

Where I tried to put the .pub key

 

But when I try to connectfrom Windows using putty I receive the following error

Server refused our key
And ask me for a password.

 

Do I forget something?

Is there any file to copy the pub key like authorized_keys in linux?

 

Thanks

Lucas

 

./ Lucas
4 REPLIES
Volker Halle
Honored Contributor

Re: Import SSH public key

Lucas,

 

please have a look at the 'HP TCP/IP Services for OpenVMS Guide to SSH'

 

http://h71000.www7.hp.com/openvms/products/ssh/ssh.pdf

 

You need to put your SSH public user key into the [.SSH2] subdirectory of your login-directory of the remote node.

 

Volker.

smsc_1
Regular Advisor

Re: Import SSH public key

Thanks for reply Volker,

I copied the key.pub into SYS$SYSDEVICE:[SMSC.ssh2] directory (this is the SSH2 directory for user used to connect to).

and then load the key.ppk into putty

 

But I still receive the following error:

Server refused our key
And then ask me for the password.

 

What I did was generate both public and private keys file from putty_gen, and then save them.This procedure works well for Windows => Linux SSH connection.

 

Do I miss some configuration on OpenVMS server?

 

./ Lucas
Highlighted
Volker Halle
Honored Contributor
Solution

Re: Import SSH public key

Lucas,

 

did you read the TCPIP Guide on SSH I pointed you to ?

 

Did you create the AUTHORIZATION. file ?

 

Volker.

smsc_1
Regular Advisor

Re: Import SSH public key

 

Ok got it!

I already created the AUTHORIZATION. file, but I miss the .pub inside it:

KEY key.pub

 

Thanks Volker, as always you're the best! :smileywink:

         

./ Lucas