Cheat Sheets

SSH - SFTP disabled

Description

SFTP subsystem must not be enabled in /etc/ssh/sshd_config

Check Script: ssh-sftp-disabled.sh

#!/bin/bash

if grep -q "Subsystem[[:space:]]*sftp[[:space:]]*.*sftp-server" /etc/ssh/sshd_config 2>/dev/null; then result_failed "SFTP subsystem is enabled, but should not be!" fi
Comment on Disqus