[StarCluster] bug(?) with setting up ssh keys for sgeadmin
Justin Riley
jtriley at MIT.EDU
Fri Oct 29 08:32:48 EDT 2010
On 10/29/10 12:14 AM, Dan Tenenbaum wrote:
> Hi,
>
> I started a cluster and saw this:
>
> >>> Configuring passwordless ssh for root
> >>> Configuring passwordless ssh for user: sgeadmin
> >>> Using existing RSA ssh keys found for user: sgeadmin
>
> I'm not sure where it found existing ssh keys...I am on a different
> machine now.
It found them on the running cluster at /home/sgeadmin/.ssh/id_rsa. Do
you have a volume attached to /home by chance? If so then those are the
keys from a previous run. If not are you using a new AMI you just created?
> Anyway, I log in to the master node as sgeadmin:
>
> starcluster sshmaster -u sgeadmin thecluster
>
> Then I try to "ssh node001"
> Not only does it prompt me to accept the key, but it then says
> permission denied (publickey).
> So apparently those existing RSA ssh keys are not working.
>
> If I ssh as root, (or sudo -s) I can then "ssh node001" without
> prompting or permission denied problems.
> As a workaround I can do everything as root, but I would prefer not to.
What happens if you do:
$ starcluster sshmaster thecluster
and then su to sgeadmin:
$ su - sgeadmin
$ ssh node001
Does this work? Also, you should check your debug file in
/tmp/starcluster-debug.log (on your local machine) for any failures
related to ssh keys.
~Justin
More information about the StarCluster
mailing list