summaryrefslogtreecommitdiffstats
path: root/infest
diff options
context:
space:
mode:
Diffstat (limited to 'infest')
-rw-r--r--infest/deploy-ssh-keys9
1 files changed, 9 insertions, 0 deletions
diff --git a/infest/deploy-ssh-keys b/infest/deploy-ssh-keys
new file mode 100644
index 00000000..1d0587d5
--- /dev/null
+++ b/infest/deploy-ssh-keys
@@ -0,0 +1,9 @@
+#!/bin/sh
+cd $(dirname $0)
+U="${1:-$USER}"
+H="$(grep "^$U" /etc/passwd | cut -d : -f 6)"
+echo "deploying for user $U to $H/.ssh"
+mkdir -p $H/.ssh
+chown $U $H
+chown $U $H/.ssh
+cp -vr skel/home/.ssh/authorized_keys $H/.ssh