home · contact · privacy
Make sure plom has rights to own ~/.ssh dir.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 6 Dec 2018 01:39:47 +0000 (02:39 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 6 Dec 2018 01:39:47 +0000 (02:39 +0100)
all_new_2018/init_user_and_keybased_login.sh

index dbce7f8e819d9356851b18ca63906891bac9644d..fc9dd96e443f81b356521219ace3136bcb5e2924 100755 (executable)
@@ -43,6 +43,7 @@ sshpass -e scp ~/.ssh/id_rsa.pub root@"${server}":/tmp/authorized_keys
 sshpass -e ssh root@"${server}" \
         'useradd -m plom && '\
         'mkdir /home/plom/.ssh && '\
+        'chown plom:plom /home/plom/.ssh && '\
         'chown plom:plom /tmp/authorized_keys && '\
         'chmod u=rw,go= /tmp/authorized_keys && '\
         'mv /tmp/authorized_keys /home/plom/.ssh/'