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