ssh key based login (311 Views)
Reply
Occasional Contributor
Lim Swee Aun
Posts: 9
Registered: ‎06-06-2010
Message 1 of 2 (311 Views)
Accepted Solution

ssh key based login

Hi,

 

Customer uses public/private key pairs for their ssh access to Linux systems.

a. How to configure OO flows (running ssh scripts) to use keys?

 

in other words:

b.how to setup public/private key pair between OO and Linux system, so that no username/password is needed?

 

Additional info:

I have managed to configure putty in OO server - on Windows Svr,

to use these keys, so I can putty to target RedHat server without username/login

(by setting up public/private key between putty and RedHat).

 

Thanks,

SweeAun LIM

BSA PreSales, Singapore.

 

Please use plain text.
Advisor
Daniel_Linsley
Posts: 15
Registered: ‎12-05-2011
Message 2 of 2 (307 Views)

Re: ssh key based login

Hello,

 

First make sure the key generated form PuttyGen is type SSH-2 RSA or SSH-2 DSA.  The SSH-1 RSA is not supported.

 

Copy and paste the public key somewhere, you'll need it on the target RedHat server.  Add the string to the .ssh/authroized_keys file of the desired user's home directory.

 

Export the private key from PuttyGen with the Conversions menu -> "Export OpenSSH Key"

 

Place this file on the RAS. For the privateKeyFile input, specify the path to this file. User's username is still required. When a privateKeyFile is specified, the password input becomes the passphrase input for the private key file. If no passphrase was specified for the key file, anything can be used in the input.

 

Dan.

Please use plain text.
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