update ssh keys and path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user