We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcaf6d6 commit 7521361Copy full SHA for 7521361
set_root_pw.sh
@@ -25,5 +25,8 @@ echo "========================================================================"
25
if [ -n "${ROOT_KEY}" ]; then
26
echo "=> Adding an SSH key for the root user"
27
mkdir -p /root/.ssh
28
- echo ${ROOT_KEY} > authorized_keys
+ chmod go-rwx /root/.ssh
29
+ echo "${ROOT_KEY}" > /root/.ssh/authorized_keys
30
+ chmod go-rw /root/.ssh/authorized_keys
31
+ cat /root/.ssh/authorized_keys
32
fi
0 commit comments