Help with ssh key exchange

Hi

I have two aix lpars with version 7.1. i created a user named test in both the lpars. in one of the lpar i ran ssh-keygen -t rsa -b 2048 and got the publickey.

i copied this public key to the authorized_keys of the other server. when i do ssh its asking for password? please assist

Check the permissions of the .ssh directory and the authorized_keys file.
Should be like this:

 
[xxxx ~]$ ls -ld .ssh/ .ssh/authorized_keys
drwxr-xr-x 2 xxxx xxxx 4096 May 29 13:52 .ssh/
-rw-r--r-- 1 xxxx xxxx 1349 May 29 13:52 .ssh/authorized_keys

Also switch up debug as you make the connection to see what's being tried (and failing) before you get password authentication method.

ssh -vvv <ip address of server>

As said above, this is usually down to permissions, ssh hates perms to be too open.