X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=all_new_2018%2Finit_user_and_keybased_login.sh;fp=all_new_2018%2Finit_user_and_keybased_login.sh;h=fc9dd96e443f81b356521219ace3136bcb5e2924;hb=8be68422f36be39368a9e76703eeb43dcacd3c53;hp=dbce7f8e819d9356851b18ca63906891bac9644d;hpb=c63f58ca5f80064da6ac82a92770ebd791e1c171;p=config
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/'