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

Next revision
Previous revision
ssh:distribute_public_keys [2016/12/05 15:18] – created peterssh:distribute_public_keys [2019/12/04 21:23] (current) – removed peter
Line 1: Line 1:
-====== SSH - Distribute public keys ====== 
- 
-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.1480951125.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki