From 9d7ebbe9a36e732adce15419b95fb5ac77f7f5b0 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 30 Aug 2013 01:44:51 +0200 Subject: add deploy-ssh-keys --- infest/deploy-ssh-keys | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 infest/deploy-ssh-keys diff --git a/infest/deploy-ssh-keys b/infest/deploy-ssh-keys new file mode 100644 index 00000000..cbdce6b5 --- /dev/null +++ b/infest/deploy-ssh-keys @@ -0,0 +1,10 @@ +#!/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" +read +mkdir -p $H/.ssh +chown $U $H +chown $U $H/.ssh +cp -r skel/home/.ssh/authorized_keys $H/.ssh -- cgit v1.2.3 From 4987f3d6e914e36d75c2442910d4414665858619 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 30 Aug 2013 01:47:41 +0200 Subject: add deploy-ssh-keys --- infest/deploy-ssh-keys | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/infest/deploy-ssh-keys b/infest/deploy-ssh-keys index cbdce6b5..1d0587d5 100644 --- a/infest/deploy-ssh-keys +++ b/infest/deploy-ssh-keys @@ -3,8 +3,7 @@ cd $(dirname $0) U="${1:-$USER}" H="$(grep "^$U" /etc/passwd | cut -d : -f 6)" echo "deploying for user $U to $H/.ssh" -read mkdir -p $H/.ssh chown $U $H chown $U $H/.ssh -cp -r skel/home/.ssh/authorized_keys $H/.ssh +cp -vr skel/home/.ssh/authorized_keys $H/.ssh -- cgit v1.2.3