LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   I cant disable openssh sftp (https://www.linuxquestions.org/questions/linux-server-73/i-cant-disable-openssh-sftp-4175512343/)

-Snake- 07-26-2014 07:05 AM

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.

afroresurrection 07-26-2014 08:21 AM

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

-Snake- 07-26-2014 08:32 AM

Quote:

Originally Posted by afroresurrection (Post 5209895)
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

Yes, i restarted ssh, but the subsystem sftp is On, i dont want disable ssh, i want disable ONLY sftp from openssh.

afroresurrection 07-26-2014 11:02 AM

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.

-Snake- 07-26-2014 11:53 AM

Quote:

Originally Posted by afroresurrection (Post 5209950)
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.

i deleted the line "Subsystem sftp" and i restarted the server, but the server is on (server sftp).

-Snake- 07-27-2014 07:26 AM

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.