[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Share ssh-key with other nodes during installation



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 <lorenz vanthillo outlook com>:
I do not use a .pem-key to ssh to my instances. I'm performing this on a centos-instance of amazon ec2.


From: lorenz vanthillo outlook com
To: users lists openshift redhat com
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
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]