Showing results for 
Search instead for 
Do you mean 

Import SSH public key

SOLVED
Go to Solution
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
1 ACCEPTED SOLUTION
Honored Contributor

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.

4 REPLIES
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.

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
Honored Contributor

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

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