Open wharris1 opened 3 years ago
Execute a script when the container starts and modify the /etc/ssh/sshd_config file that way.
See the Custom Scripts section of the README for details.
Example script of enabling logging in /etc/ssh/sshd_config:
#!/usr/bin/env bash
# custom configuration /etc/ssh/sshd_config
ssh_config="/etc/ssh/sshd_config"
echo "customizing /etc/ssh/sshd_config..."
sed -i 's/^#SyslogFacility AUTH/SyslogFacility AUTH/' $ssh_config
sed -i 's/^#LogLevel INFO/LogLevel INFO/' $ssh_config
I've been able to run the image just fine --- doing various things. What I can't seem to do it is to replace its
/etc/ssh/sshd_config
with my own. Notice this is supported. The homepage saysI'd like to replace it because I want to set directives such as
ListenAddress
. Whenever I try to replace it, I get the following error:Output of DEBUG=true.