I cant disable openssh sftp
I have a server with proftp, but too openssh sftpd is on, i want disable openssh sftpd, i deleted the line "Subsystem..." from /etc/ssh/sshd_config but openssh sftpd is ON, how can i disable the server? i dont want execute "service ssh stop" because i want the ssh server.
Thanks. |
Have you tried restarting ssh? sshd -t for syntax check and/etc/init.d/sshd restart. Won't kick you off unless you have iptables rules in place blocking ssh, which you can check with iptables -L
|
Quote:
|
Disabling subsystem sftp won't disable ssh, that's two totally different directives (combo of PermitRootLogon to limit root and AllowUsers to whitelist users).
Just comment out the "Subsystem sftp" line and restart ssh. |
Quote:
|
I resolve the problem with "Subsystem sftp /bin/false" to the enf of file.
|
All times are GMT -5. The time now is 06:26 PM. |