SFTP nutzt SSH und ist verschluesselt:
# SFTP ist in OpenSSH integriert — keine extra Software noetig! # Verbindung: sftp user@server # FileZilla: Protokoll auf "SFTP" umstellen # WinSCP: Protokoll "SFTP" waehlen # FTP-Server deaktivieren: sudo systemctl stop vsftpd # oder proftpd/pure-ftpd sudo systemctl disable vsftpd
Wenn FTP unvermeidbar ist:
# UFW (Ubuntu): sudo ufw deny 21/tcp sudo ufw allow from 1.2.3.4 to any port 21 # Nur Ihre IP # iptables: iptables -A INPUT -p tcp --dport 21 -j DROP iptables -A INPUT -p tcp --dport 21 -s 1.2.3.4 -j ACCEPT # ISPConfig: Website > Optionen > FTP deaktivieren