Go Back   The UNIX and Linux Forums > Operating Systems > AIX


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 08-28-2012
Registered User
 
Join Date: Jul 2011
Location: Bangalore
Posts: 74
Thanks: 27
Thanked 0 Times in 0 Posts
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
Sponsored Links
    #2  
Old 08-28-2012
radoulov's Avatar
--
 
Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 5,468
Thanks: 139
Thanked 538 Times in 506 Posts
Check the permissions of the .ssh directory and the authorized_keys file.
Should be like this:


Code:
 
[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

Sponsored Links
    #3  
Old 08-28-2012
Registered User
 
Join Date: Aug 2012
Posts: 24
Thanks: 1
Thanked 2 Times in 2 Posts
Also switch up debug as you make the connection to see what's being tried (and failing) before you get password authentication method.


Code:
ssh -vvv <ip address of server>

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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
mail exchange alwayslearningunix UNIX for Dummies Questions & Answers 2 05-01-2001 01:33 PM



All times are GMT -4. The time now is 05:04 AM.