summaryrefslogtreecommitdiffstats
path: root/infest/deploy-ssh-keys
blob: 1d0587d564f1ecd5eef74f3c36b81609eef7d6e7 (plain)
1
2
3
4
5
6
7
8
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