Wednesday, June 15, 2011

Shutting down sFTP on CentOS

To disable sFTP, you have to disable under OpenSSH Subsystem option since sFTP protocol is NOT called directly but via OpenSSH

Step 1: Proceed to sshd_config file
# vim /etc/ssh/sshd_config

Step2: Comment out the line with a # inside /etc/ssh/sshd_config
# Subsystem sftp /usr/lib/openssh/sftp-server


Step 3: Restart OpenSSH service
# service sshd restart

No comments: