Topic
  • 2 replies
  • Latest Post - ‏2013-10-31T15:04:08Z by Wouter Liefting
paulmeli
paulmeli
1 Post

Pinned topic ssh passwordless AIX 5.3 OpenSSH_5.2

‏2013-10-30T16:10:04Z |

Hi friends,

I am trying to configure ssh passwordless with AIX 5.3 and OpenSSH_5.2. 

Before  the command: ssh-keygen -t rsa I can execute ssh commands, of course asking me a password for login.

After executing the command  ssh-keygen -t rsa problems begin.  for example:

# ssh -vvv delrac01 df          ----------> It produces an error, closing the connection from remote server:

debug2: we sent a publickey packet, wait for reply

Connection closed by 192.16.17.1

 

I tried changing permission of authorized_keys to 600, .ssh directory to 700.  Didn't work.

Can you help me?  I am stuck 1 week with the same problem. 

Thank you in Advanced

Paul

Updated on 2013-10-30T16:57:35Z at 2013-10-30T16:57:35Z by paulmeli
  • zieggy
    zieggy
    10 Posts

    Re: ssh passwordless AIX 5.3 OpenSSH_5.2

    ‏2013-10-31T07:57:49Z  

    Hi,

     

    I think you need to copy the public key pair generated on directory //.ssh/id.rsa.pub in your remote server.

    root@AIX:/.ssh # ls -la
    total 32
    drwx------    2 root     system          256 Oct 31 15:50 .
    drwxr-xr-x   35 root     system         4096 Oct 31 15:47 ..
    -rw-------    1 root     system         1675 Oct 31 15:50 id_rsa
    -rw-r--r--    1 root     system          394 Oct 31 15:50 id_rsa.pub
    -rw-r--r--    1 root     system         2773 Mar 03 2011  known_hosts
    root@AIX:/.ssh # vi id_rsa.pub
    "id_rsa.pub" 1 line, 394 characters
    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxjB5j85KMBlFopFlgJsuWg5e/BolMCENYbEQfHCgdJfv
    fB1EpPcajWdXc2Ch7zyrubN6nNG3PLr66Q3gjUSuDKna57GyiLzBVnD7CSHYZk1MtFJhDtBn/Gp15kd8
    NLWJlfyC2NEGr7A34b8XJCA5L1HjDkz6629N1QVLjo9U9hTu84YrPylwAV7FbS3isbeUyseQHURczpdg
    /BymAs3fm08Fs4LoG7ranYdLwoVN+m6vB2s6sm1VHRytDY2NKnA9Sc4fnc5DnqBSJNLo8lvQyJfaWrR+
    5C2geLeyBJ8bxfHo4WwXLDsHVNdRZAEG3H+mKiEg0itqqaEBkYgT1yl0Lw== root@AIX

     

  • Wouter Liefting
    Wouter Liefting
    100 Posts

    Re: ssh passwordless AIX 5.3 OpenSSH_5.2

    ‏2013-10-31T15:04:08Z  
    • zieggy
    • ‏2013-10-31T07:57:49Z

    Hi,

     

    I think you need to copy the public key pair generated on directory //.ssh/id.rsa.pub in your remote server.

    root@AIX:/.ssh # ls -la
    total 32
    drwx------    2 root     system          256 Oct 31 15:50 .
    drwxr-xr-x   35 root     system         4096 Oct 31 15:47 ..
    -rw-------    1 root     system         1675 Oct 31 15:50 id_rsa
    -rw-r--r--    1 root     system          394 Oct 31 15:50 id_rsa.pub
    -rw-r--r--    1 root     system         2773 Mar 03 2011  known_hosts
    root@AIX:/.ssh # vi id_rsa.pub
    "id_rsa.pub" 1 line, 394 characters
    ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAxjB5j85KMBlFopFlgJsuWg5e/BolMCENYbEQfHCgdJfv
    fB1EpPcajWdXc2Ch7zyrubN6nNG3PLr66Q3gjUSuDKna57GyiLzBVnD7CSHYZk1MtFJhDtBn/Gp15kd8
    NLWJlfyC2NEGr7A34b8XJCA5L1HjDkz6629N1QVLjo9U9hTu84YrPylwAV7FbS3isbeUyseQHURczpdg
    /BymAs3fm08Fs4LoG7ranYdLwoVN+m6vB2s6sm1VHRytDY2NKnA9Sc4fnc5DnqBSJNLo8lvQyJfaWrR+
    5C2geLeyBJ8bxfHo4WwXLDsHVNdRZAEG3H+mKiEg0itqqaEBkYgT1yl0Lw== root@AIX

     

    You might want to try DSA instead of RSA. RSA might be disabled at the server end. And like zieggy said, the public key (id_dsa.pub) needs to be copied to the server, and added to .ssh/authorized_keys or .ssh/authorized_keys2 (which file depends on the server settings).

    If you want your private key (id_dsa) to be protected with a password, but still want passwordless login, I suggest you also read up on ssh_agent and ssh_add.