mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 11:30:12 +08:00
fix: copy entrypoint into quest container. Disable mounting for entrypoint & public key. Use Env to pass ssh public key into container.
This commit is contained in:
1 parent
860b257ea7
commit
1888781a47
5 files changed
+32
-23
No files matched your search
@@ -10,9 +10,10 @@ if ! id -u ${USERNAME} >/dev/null 2>&1; then
|
||||
find / -name ".gitkeep" -type f -exec rm -f {} +
|
||||
|
||||
echo "Adding public key for $USERNAME"
|
||||
PUB_KEY=/etc/ssh/authorized_keys/${USERNAME}
|
||||
cp /ssh_key.pub ${PUB_KEY}
|
||||
chmod 644 ${PUB_KEY}
|
||||
echo "Public key: $PUB_KEY"
|
||||
PUB_KEY_PATH=/etc/ssh/authorized_keys/${USERNAME}
|
||||
echo $PUB_KEY > ${PUB_KEY_PATH}
|
||||
chmod 644 ${PUB_KEY_PATH}
|
||||
fi
|
||||
|
||||
mkdir -p /run/sshd
|
||||
|
||||
Reference in new issue
Block a user