AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

ssh passwordless AIX 5.3 OpenSSH_5.2

  • 1.  ssh passwordless AIX 5.3 OpenSSH_5.2

    Posted Wed October 30, 2013 12:10 PM

    Originally posted by: paulmeli


    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


    #AIX-Forum


  • 2.  Re: ssh passwordless AIX 5.3 OpenSSH_5.2

    Posted Thu October 31, 2013 03:58 AM

    Originally posted by: zieggy


    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

     


    #AIX-Forum


  • 3.  Re: ssh passwordless AIX 5.3 OpenSSH_5.2

    Posted Thu October 31, 2013 11:04 AM

    Originally posted by: Wouter Liefting


    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.


    #AIX-Forum