On Thu, Nov 12, 2015 at 07:11:02PM -0800,
jit...@seas.upenn.edu wrote:
> On Thursday, November 12, 2015 at 4:17:55 PM UTC-5, Robert Ricci wrote:
> > We also have some recipes that you can use to set up passwordless ssh
> > between the nodes in your experiment using an experiment wide key.
>
> It would be great if you can send those recipes. Thanks!
Hi! The exact procedure for invocation will vary depending how your
profile is constructed (whether it uses geni-lib, a raw RSpec, Jacks,
or Chef), but you can use this shell script to install a common SSH
key pair for any user on any node:
------------------------------------------------------------------------
#!/bin/sh
/usr/bin/geni-get key > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod 644 ~/.ssh/authorized_keys
------------------------------------------------------------------------
The key will be generated randomly as the experiment is instantiated
(so each instantiation gets a unique key), but within the experiment,
each run of the script above will create the same pair, so each account
running the script will both be able to log in to (and accept logins
from) any other account that does the same thing.
Thanks,
Gary.
--
Gary Wong
g...@flux.utah.edu http://www.cs.utah.edu/~gtw/