Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 10-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ fi

# Configure the SSH server configuration file
SSHD_CONFIG_FILE='/etc/ssh/sshd_config'
# Disable SFTP by commenting the Subsystem line
sed -e '/^Subsystem/s/^/#/' -i ${SSHD_CONFIG_FILE}
if [ -n "${SSH_AUTH_METHODS-}" ]; then
if sed -i "s/.*AuthenticationMethods.*//g" ${SSHD_CONFIG_FILE}; then
echo "AuthenticationMethods ${SSH_AUTH_METHODS}" >> ${SSHD_CONFIG_FILE}
Expand Down