User Tools

Site Tools


ssh:distribute_public_keys

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ssh:distribute_public_keys [2016/12/05 15:20] peterssh:distribute_public_keys [2019/12/04 21:23] (current) – removed peter
Line 1: Line 1:
-====== SSH - Distribute public keys ====== 
- 
-Any generic configuration management software like [[http://reductivelabs.com/products/puppet/|Puppet]], [[http://www.opscode.com/chef/|Chef]], [[http://trac.mcs.anl.gov/projects/bcfg2|Bcfg2]] or [[http://www.cfengine.org/|cfengine]] could accomplish the task. 
- 
-A very easy solution, that does the same with firewall-rules 
- 
-Example file hosts.conf: 
- 
-<file bash hosts.conf> 
-192.168.0.1 
-192.168.2.99 
-192.168.2.100 
-</file> 
- 
- 
-<file bash distribute.sh> 
-#!/bin/bash 
-for d in `cat ./hosts.conf`; do 
-  echo "copying to $d ..."; 
-  scp /root/.ssh./authorized_keys root@$d:/root/.ssh./authorized_keys 
-done; 
-</file> 
- 
  
ssh/distribute_public_keys.1480951225.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki