Results 1 to 4 of 4

Thread: Problem with SSH keys while configuring MPICH

  1. #1
    Join Date
    Mar 2006
    Beans
    22

    Problem with SSH keys while configuring MPICH

    Hi, I'm trying to set up MPICH (a parallel computing platform) following the directions at https://help.ubuntu.com/community/MpichCluster. I'm stuck trying to get one of the computers in the cluster to allow the other computers to ssh onto it just with a public/private key rather than requiring a password.

    I've checked /etc/ssh/sshd_config and RSAAuthentication and PubkeyAuthentication are both set to yes and the AuthorizedKeysFile is correct.

    When I do ssh hostnameofstuckcomputer hostname, I get a prompt for a password whereas on the other computers I do not get this prompt. Any suggestions on how I can resolve this? I've already reinstalled once (because of an unrelated issue).

  2. #2
    Join Date
    Mar 2007
    Location
    Denver, CO
    Beans
    7,958
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Problem with SSH keys while configuring MPICH

    I assume you set

    #PasswordAuthentication yes

    to

    PasswordAuthentication no


    Is this what you want? (and then restarted the server)?

    sudo service sshd restart

    or
    sudo /etc/init.d/ssh restart

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    host-based authentication

    Look at host-based authentication for ssh. That will allow the one machine to authenticate to the other. So a user on the first is allowed in on the second simply by virtue of having logged in on the first. Obviously there are some risks.

    These are a little old, but give the general idea.

    http://www.snailbook.com/faq/trusted...owto.auto.html
    http://cert.uni-stuttgart.de/doc/openssh/host-based.php

    (Search engines aren't much use for finding anything other than noise these days.)

    Otherwise, you might look at using a key agent. Ubuntu, at least Kubuntu, loads an agent automatically on startup and it is then only a matter of adding a key to it to be able to use that key repeatedly.n

  4. #4
    Join Date
    Mar 2006
    Beans
    22

    Re: Problem with SSH keys while configuring MPICH

    Well I ended up having success after I decided I would not use the same folder on the same drive for the home folder of all the users and after also having changed /etc/hosts so that none of the hosts had more than one hostname. I'm not sure whether that would work with the single folder setup, but I decided that wasn't the best setup as my computers have different architectures.

Bookmarks

Posting Permissions

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