Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

ssh for openmpi

$
0
0
Trying to get SSH set up in a small cluster - but can't get ssh-add to work. From my reading of the DIY pages (https://www.open-mpi.org/faq/?catego...sh-run-prereqs), ssh-add should add my identity to the ssh-agent so that openmpi processes on my head node can spawn threads on my second node. It doesn't change anything if I give rw-rw-rw- to ~/.ssh/*, so I don't think it's a permissions problem. I am able to ssh between the machines, but it always asks for my passphrase. I've been working at this a while and feel badly because this is just the first step in trying to get openmpi working... :\

Thank you for any help or insight. :)

Code:

:~> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/patti/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/patti/.ssh/id_rsa.
Your public key has been saved in /home/patti/.ssh/id_rsa.pub.
The key fingerprint is:
<...>
 :~>
 :~> ssh 111.111.0.102
Enter passphrase for key '/home/patti/.ssh/id_rsa':
Last login: Sun Jun 29 18:57:43 2014 from 111.111.0.100
Have a lot of fun...
AA:~> exit
logout
Connection to 111.111.0.102 closed.
 :~>
 :~> ssh 111.111.0.102
Enter passphrase for key '/home/patti/.ssh/id_rsa':
Last login: Sun Jun 29 19:09:52 2014 from 111.111.0.100
Have a lot of fun...
AA:~> exit
logout
Connection to 198.162.0.102 closed.
 :~>
 :~> eval 'ssh-agent'
SSH_AUTH_SOCK=/tmp/ssh-u1t0fiXc0WpD/agent.24032; export SSH_AUTH_SOCK;
SSH_AGENT_PID=24033; export SSH_AGENT_PID;
echo Agent pid 24033;
 :~>
 :~> ssh-add /home/patti/.ssh/id_rsa
Could not open a connection to your authentication agent.
 :~>

EDIT: Found this - needed to do "ssh-agent /bin/bash"
http://forums.opensuse.org/showthrea...ication-on-SSH

...not trying to figure out how to have ssh-agent do it's thing behind-the-scenes... i.e., without having to invoke it and ssh-add every time I run a shell.

Viewing all articles
Browse latest Browse all 40713

Trending Articles