How to add ssh keys in a running cluster?

506 views
Skip to first unread message

Patrick Heneise

unread,
Oct 7, 2015, 12:52:16 PM10/7/15
to CoreOS User
Hi there,

I deployed a cluster with 3 CoreOS machines for a customer. The cluster was in development for a while and has been set up with cloud-config, where I defined my ssh keys from my machines:

ssh_authorized_keys:
 
- ssh-rsa ...



Now I want to give the customer and operations the possibility to log in to the cluster with fleetctl to at least restart etc.


How is this possible?


cat .ssh/authorized_keys


says:


# auto-generated by /usr/bin/update-ssh-keys


but there's no info on how to add ssh keys to the machines.


Thanks

Patrick

anton....@coreos.com

unread,
Oct 7, 2015, 12:58:36 PM10/7/15
to CoreOS User
Dear Patrick,

You can put additional ssh keys into this directory: /home/core/.ssh/authorized_keys.d and then run update-ssh-keys. It will update /home/core/.ssh/authorized_keys file with keys located inside /home/core/.ssh/authorized_keys.d directory.

Regards,
Anton

anton....@coreos.com

unread,
Oct 7, 2015, 1:01:40 PM10/7/15
to CoreOS User
In addition you can also follow this doc: https://coreos.com/os/docs/latest/adding-users.html

On Wednesday, October 7, 2015 at 6:52:16 PM UTC+2, Patrick Heneise wrote:

Patrick Heneise

unread,
Oct 28, 2015, 9:27:27 AM10/28/15
to CoreOS User
Thanks Anton! Not looking to create a user, just giving access to core.
Reply all
Reply to author
Forward
0 new messages