ssh problem

Discussion in 'Linux Networking' started by Burkhard Schultheis, Nov 18, 2015.

  1. OS: SLES 11 SP 4
    We have the following problem: We want to establish a ssh connection
    between 2 SLES machines for some users without password. Normally it
    works without a problem, but with 2 new users it does not work.

    What we did is the following:

    as user a on machine A:
    a@A> ssh-keygen -t rsa
    no passphrase
    a@A> cat ~/.ssh/id_rsa.pub | ssh a@B 'cat >> .ssh/authorized_keys'

    We use the local /etc/password, the output of "id a" is identical on
    both machines.

    The same procedure is successful for user c, but not for a and b. Where
    should I search for differences between a, b and c?

    Thanks in advance!

    Regards
    Burkhard
     
    Burkhard Schultheis, Nov 18, 2015
    #1
    1. Advertisements

  2. Am 18.11.2015 um 12:25 schrieb Burkhard Schultheis:
    I found it myself: Permissions of the home directory on the foreign
    machine was 775, not 755.
     
    Burkhard Schultheis, Nov 18, 2015
    #2
    1. Advertisements

  3. log onto B as root. Look at the .ssh/authorized_keys files for each of
    the users a, b and c.
    Look at the .ssh/id_rsa.pub files for each of the users a, b, and c on
    machine A. Make sure that they are exactly the same stuff.

    Then make sure that the permission are correct on the .ssh directlry and
    on the files
    It must not be readable, writeable of exactutable by others.
    Also the various files should not be readable or writeable except for
    the user.
     
    William Unruh, Nov 18, 2015
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.