Git Codebase - Sn0wlink IT
SSH Sync Manager
Code:
Download ZIP
README.md
config
hosts.sh
publickeys.sh
run.sh
run.sh
# Sn0wlinks SSH User Manager # # August 2023 # David Collins-Cubitt # This program will propogate ssh user public keys to different servers # to make it easy for users to be added and removed from large server clusters. # # Dependencys: # - OpenSSH # Setup SSH Config echo 'Updating Config File' cp config ~/.ssh/config echo # Begin Loop cat hosts.sh | while read line do echo "Updating $line" scp -o StrictHostKeyChecking=no publickeys.sh $line:~/.ssh/authorized_keys echo done # End loop # Confirm to screen echo '---------------------------' echo 'SSH users, update complete.' # EOF