Files
danbooru/script/install/distribute_new_pubkey.sh
2018-10-16 09:47:58 -07:00

11 lines
169 B
Bash

#!/bin/sh
HOSTS="kagamihara shima saitou"
echo "Enter new SSH pubkey: "
read $key
for host in $HOSTS ; do
ssh danbooru@$host echo $key >> .ssh/authorized_keys
done