Hi Fran,

I'm not sure how to interpret your answer.
First of all I can give this information:

I ssh from my PC to my instances with ssh centos@ec2.. (without .pem). (To all 
my instances)
On my master I perform: ssh-keygen and press enter. (I tried this as root and 
as centos-user).

After that I perform the loop. and the permission is denied. I ran the loop as 
root (and also once as centos-user).


Date: Tue, 26 Jan 2016 12:13:38 +0100
Subject: Re: Share ssh-key with other nodes during installation
From: [email protected]
To: [email protected]
CC: [email protected]

Hi Lorenz,
Is the user you are trying to copy the ssh keys capable to connect with these 
machines via ssh? It seems like these machines only allow connection via ssh 
key.
Regards.
2016-01-26 11:31 GMT+01:00 Lorenz Vanthillo <[email protected]>:



I do not use a .pem-key to ssh to my instances. I'm performing this on a 
centos-instance of amazon ec2.

From: [email protected]
To: [email protected]
Subject: Share ssh-key with other nodes during installation
Date: Tue, 26 Jan 2016 11:04:05 +0100




I've installed OpenShift origin 1.1 a few times. But I always have to copy the 
key manually from the master to it nodes.
But when I have to create a cluster with many nodes I want to automate this.
I saw: 

# for host in master.example.com \
    node1.example.com \
    node2.example.com; \
    do ssh-copy-id -i ~/.ssh/id_rsa.pub $host; \
    done

Which looked very promissing but I always got:
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out 
any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted 
now it is to install the new keys
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out 
any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted 
now it is to install the new keys
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out 
any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted 
now it is to install the new keys
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
What's wrong with the permissions?
                                                                                
  

_______________________________________________

users mailing list

[email protected]

http://lists.openshift.redhat.com/openshiftmm/listinfo/users



                                          
_______________________________________________
users mailing list
[email protected]
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

Reply via email to