Create "/run/sshd/" directory in the init script
This commit is contained in:
@@ -76,6 +76,11 @@ if [ -z "${VGL_DISPLAY-}" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create privilege separation directory for SSH server if it does not exist
|
||||||
|
if [ ! -e /run/sshd/ ]; then
|
||||||
|
mkdir /run/sshd/
|
||||||
|
fi
|
||||||
|
|
||||||
# Generate SSH keys if they do not exist
|
# Generate SSH keys if they do not exist
|
||||||
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
|
||||||
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null
|
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -e /run/sshd/ ]; then
|
|
||||||
mkdir /run/sshd/
|
|
||||||
fi
|
|
||||||
|
|
||||||
exec 2>&1
|
exec 2>&1
|
||||||
exec /usr/sbin/sshd -D
|
exec /usr/sbin/sshd -D
|
||||||
|
|||||||
Reference in New Issue
Block a user