From: Christian Heller Date: Thu, 6 Dec 2018 01:39:47 +0000 (+0100) Subject: Make sure plom has rights to own ~/.ssh dir. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/template?a=commitdiff_plain;h=8be68422f36be39368a9e76703eeb43dcacd3c53;p=config Make sure plom has rights to own ~/.ssh dir. --- diff --git a/all_new_2018/init_user_and_keybased_login.sh b/all_new_2018/init_user_and_keybased_login.sh index dbce7f8..fc9dd96 100755 --- a/all_new_2018/init_user_and_keybased_login.sh +++ b/all_new_2018/init_user_and_keybased_login.sh @@ -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/'