Can we update the ssh addon to allow the sshd loglevel to be defined in the options. At present the addon is generating DEBUG level all of the time.
Updating the run.sh and config.json files as follows should allow this:
config.json section:
"options": {
"log_level": "info",
"authorized_keys": [],
"password": ""
},
"schema": {
"log_level": "match(^(debug3|debug2|debug1|debug|verbose|info|error|fatal|quiet)$)",
"authorized_keys": ["str"],
"password": "str"
},
run.ssh section:
PASSWORD=$(jq --raw-output ".password" $CONFIG_PATH)
LOG_LEVEL=$(jq --raw-output '.log_level // "DEBUG"' $CONFIG_PATH)
# Init defaults config
sed -i s/#PermitRootLogin.*/PermitRootLogin\ yes/ /etc/ssh/sshd_config
sed -i s/#LogLevel.*/LogLevel\ $LOG_LEVEL/ /etc/ssh/sshd_config