update ssh keys and path

This commit is contained in:
Mikan
2026-10-11 10:11:42 +04:00
parent 5894241be5
commit 7af4da48b7
5 changed files with 25 additions and 21 deletions

View File

@@ -3,16 +3,6 @@
set -eu
# ------------------------------------------------------------
# SSH authorized keys
# ------------------------------------------------------------
cp /mounted-authorized-keys /home/operator/.ssh/authorized_keys
chown -R operator:operator /home/operator/.ssh
chmod 700 /home/operator/.ssh
chmod 600 /home/operator/.ssh/authorized_keys
# ------------------------------------------------------------
# Configuration
@@ -53,6 +43,15 @@ case "$SSH_ROLE" in
esac
# ------------------------------------------------------------
# SSH authorized keys
# ------------------------------------------------------------
cp /project/ssh/authorized_keys /home/operator/.ssh/authorized_keys
chown -R operator:operator /home/operator/.ssh
chmod 700 /home/operator/.ssh
chmod 600 /home/operator/.ssh/authorized_keys
# ------------------------------------------------------------
# Interactive shell environment