System Administration
Showing results for 
Search instead for 
Did you mean: 

ssh key with different ssh versions.

Go to solution

ssh key with different ssh versions.

Hi people ... I'm trying to exchange ssh key to avoid password request.

source server is an hpux 11.00, ssh version is
ssh: SSH Secure Shell 3.2.3 on hppa1.1-hp-hpux11.00

target server is an aix 5.2, ssh version is
OpenSSH_4.7p1, OpenSSL 0.9.8f 11 Oct 2007
in source server i did generate ssh key doing "ssh-keygen -t rsa" and its stored in "Public key saved to /usr/app/autosys/.ssh2/"
"cat ~/.ssh2/identification
IdKey id_rsa_2048_b"

What I need to know is how do i append that key to the target server in "authorized_key" file.

Thx all for the time and help!!!

Re: ssh key with different ssh versions.

Just cat it to the end of your file:
cat identification >> ~/.ssh2/authorized_keys
Honored Contributor

Re: ssh key with different ssh versions.

Your source server is running a commercial SSH product from It uses a public key storage format that is different from OpenSSH key format, but the key itself is compatible.

Copy the file to the target server, then run:
ssh-keygen -i -f >>~/.ssh/authorized_keys

This (-i is for import) will convert the commercial SSH public key to the proper format for OpenSSH.

The OpenSSH authorized_keys file requires that the keys are in "one key per line" format, while the commercial SSH stores the public key in a multi-line format.

The OpenSSH ssh-keygen tool has both import and export options, so it can convert the keys in both directions. The ssh-keygen tool of the commercial SSH (version 3.2.*) can only import OpenSSH keys to format.


Re: ssh key with different ssh versions.

Thanks 4 the help guys, points assigned.