Find the answer to your Linux question:
Results 1 to 4 of 4
hello i need assistance. i am setting up a connection between AIX and a linux box with a user called backbone. backbone will login to the linux box vi ssh. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2011
    Posts
    1

    setting up ssh between AIX and Linux box


    hello

    i need assistance.

    i am setting up a connection between AIX and a linux box with a user called backbone.
    backbone will login to the linux box vi ssh.

    that is : ssh -i /home/backbone/.ssh/transpdf backrec IP

    now the above command should not ask for a password but for me it does.

    i created the ssh key and did send the public key to the other server but still the command below is asking for a password.

    what am i doing wrong

    chucktalors

  2. #2
    Linux Enthusiast scathefire's Avatar
    Join Date
    Jan 2010
    Location
    Western Kentucky
    Posts
    626
    Is your ssh server set up for Public Key authorization?
    Code:
    /etc/ssh/sshd_config
    
    PubkeyAuthentication yes
    AuthorizedKeysFile      .ssh/authorized_keys
    You may also want to check the permissions of the private key on the server. If its world-readable or executable it will throw a fit. I usually chmod the directory to 700 and the file to 600.
    linux user # 503963

  3. #3
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    664
    Quote Originally Posted by scathefire View Post
    Is your ssh server set up for Public Key authorization?
    Code:
    /etc/ssh/sshd_config
    
    PubkeyAuthentication yes
    AuthorizedKeysFile      .ssh/authorized_keys
    You may also want to check the permissions of the private key on the server. If its world-readable or executable it will throw a fit. I usually chmod the directory to 700 and the file to 600.
    Those are the correct perms. It will refuse to use the key if the folder or key file are so much as group readable, IIRC.
    You can also use the -v switch for ssh to see what's happening with the connection and authentication if that's not it.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast
    Join Date
    Jan 2005
    Location
    Saint Paul, MN
    Posts
    668
    Code:
    ssh -i /home/backbone/.ssh/transpdf backrec backbone@IP
    Unless of course your current username is "backbone".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •