Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] Accessing OpenMPI processes over Internet using ssh
From: Reuti (reuti_at_[hidden])
Date: 2011-11-24 04:00:53


Am 24.11.2011 um 05:26 schrieb Jaison Paul:

> I am trying to access OpenMPI processes over Internet using ssh and not quite successful, yet. I believe that I should be able to do it.
> I have to run one process on my PC and the rest on a remote cluster over internet. I have set the public keys (at .ssh/authorized_keys) to access remote nodes without a password.
> I use hostfile to run mpi. It will read something like:
> -----------------------------
> localhost
> user_at_[hidden]

this is not a valid syntax for Open MPI.

> -----------------------------
> But it fails.
> The issue seems to be the user! That is, the user on my PC is different to that of user at remotehosts. That's my assumption.
> Is this the problem? Is there any work-around to solve this issue? Do I need to have same username at all nodes to solve this issue?

You can define nicknames for an ssh connection in a file ~/.ssh/config like:

Host foobar
    User baz
    Hostname the.remote.server.demo
    Port 1234

While this will work with any nickname for an ssh connection, in your case the nickname must match the one specified in the hostfile, as Open MPI won't use this lookup file:

    User user

ssh should then use the entries therein to initiate the connection. For details you can have a look at `man ssh_config`.

-- Reuti