llama
This commit is contained in:
10
ssh/entrypoint.sh
Normal file
10
ssh/entrypoint.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
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
|
||||
|
||||
exec /usr/sbin/sshd -D -e
|
||||
Reference in New Issue
Block a user