Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Sharing ssh keys

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
Munty Scruntfundle
Posts: 54
Joined: 2018-11-27 16:53

Sharing ssh keys

#1 Post by Munty Scruntfundle »

Next question for the day...

If have 128 debian/raspbian nodes on a closed network. This is going to be a collaborative cluster, usually you would have a header node and a load of slaves, but I'm trying to do something different.

I want every node to have access to every node. I'm sharing data in all sorts of ways and some of it requires ssh instructions.

So. Is there any easy way to create keys and share them all within the cluster? If not it's going to take days!!

Many thanks.

arzgi
Posts: 1197
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: Sharing ssh keys

#2 Post by arzgi »

There is ssh-copy-id, which helps shearing keys. I've only used it to one host at time, but you could write a script, which would in loop read one host from file, and call ssh-copy-id whit it.

Fortunately ssh-copy-id -n is try run option. I leave it to you to test, will it halt the script when it tries to copy keys to itself. That would make it bit more challenging, but not too demanding.

Post Reply