Re: Import SSH public key (988 Views)
Reply
Regular Advisor
Posts: 87
Registered: ‎11-19-2007
Message 1 of 5 (1,000 Views)
Accepted Solution

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
Honored Contributor
Posts: 5,245
Registered: ‎04-26-2004
Message 2 of 5 (998 Views)

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.

Regular Advisor
Posts: 87
Registered: ‎11-19-2007
Message 3 of 5 (995 Views)

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
Honored Contributor
Posts: 5,245
Registered: ‎04-26-2004
Message 4 of 5 (992 Views)

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.

Highlighted
Regular Advisor
Posts: 87
Registered: ‎11-19-2007
Message 5 of 5 (988 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.