Eric Knibbe committed 592c620 Draft

adding keyputter

Comments (0)

Files changed (1)


+# Installs the current user's DSA key on all servers listed in the heredoc. 
+# If the key requires a passphrase, be sure to set up ssh-agent as well.
+# A key can be generated with: 
+# 	ssh-keygen -t dsa -f ~/.ssh/id_dsa -C ""
+while read HOST
+	echo "Installing on ${HOST}..."
+	cat ~/.ssh/ | ssh root@${HOST} 'test ! -d "/root/.ssh" && mkdir /root/.ssh; cat - >> ~/.ssh/authorized_keys'
+done <<EOF