home · contact · privacy
Fix broken setup script.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 29 Aug 2023 21:09:29 +0000 (23:09 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 29 Aug 2023 21:09:29 +0000 (23:09 +0200)
bookworm/setup_scripts/init_user_login.sh

index 8413cd842e1c2728cde7f474b583a2e12770a3d0..aa8a03f6b090c076f6bbec57fda41bfeec004174 100755 (executable)
@@ -22,16 +22,16 @@ server="$1"
 eval $(ssh-agent)
 ssh-add
 
-# This will be used to log-in as root from plom account.
-echo 'Asking for new root password.'
-ssh root@"${server}" "passwd"
-# 
-# Set up plom's ~/.ssh/authorized_keys from root's.
-ssh root@"${server}" 'useradd -m plom'
-ssh root@"${server}" 'mkdir /home/plom/.ssh'
-ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
-ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'
-ssh root@"${server}" 'chown plom:plom /home/plom/.ssh/authorized_keys'
+# This will be used to log-in as root from plom account.
+echo 'Asking for new root password.'
+ssh root@"${server}" "passwd"
+
+# Set up plom's ~/.ssh/authorized_keys from root's.
+ssh root@"${server}" 'useradd -m plom'
+ssh root@"${server}" 'mkdir /home/plom/.ssh'
+ssh root@"${server}" 'chown plom:plom /home/plom/.ssh'
+ssh root@"${server}" 'cp /root/.ssh/authorized_keys /home/plom/.ssh/'
+ssh root@"${server}" 'chown plom:plom /home/plom/.ssh/authorized_keys'
 
 # Set up SSH config and remove direct SSH login to root.
 scp "${local_path_sshd_config}" root@"${server}":"${system_path_sshd_config}"