diff options
author | makefu <root@pigstarter.de> | 2013-09-01 21:07:22 +0200 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-09-01 21:07:22 +0200 |
commit | edc178dc3da007b87fc5a80bc1179dd1a4f135ca (patch) | |
tree | e824dc11d6935c6df14f8fba1aeaf14e64bbeb41 /infest | |
parent | c00cae9b125f8a7964e7d09dd654c4d79f2f23e0 (diff) | |
parent | 4987f3d6e914e36d75c2442910d4414665858619 (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'infest')
-rw-r--r-- | infest/deploy-ssh-keys | 9 |
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 |