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 1ba5d69 commit a7be237Copy full SHA for a7be237
start.sh
@@ -19,8 +19,11 @@ fi
19
if test -n "$SSHKEY"
20
then
21
mkdir -p $HOME/.ssh
22
- echo "$SSHKEY" >>$HOME/.ssh/authorized_keys
23
- chmod 600 ~/.ssh/authorized_keys
+ if ! grep "$SSHKEY" $HOME/.ssh/authorized_keys
+ then echo "$SSHKEY" >>$HOME/.ssh/authorized_keys
24
+ fi
25
+ chmod 600 $HOME/.ssh/authorized_keys
26
+ chmod 700 $HOME/.ssh
27
fi
28
29
# fix permissions
supervisord.ini
@@ -6,7 +6,7 @@ pidfile=/tmp/supervisord.pid
6
user=root
7
8
[program:sshd]
9
-command=/usr/sbin/sshd -p 2222 -D
+command=/usr/sbin/sshd -p 2222 -D -e
10
directory=/
11
12
autostart=true
0 commit comments