LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-26-2014, 07:05 AM   #1
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Rep: Reputation: Disabled
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.
 
Old 07-26-2014, 08:21 AM   #2
afroresurrection
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
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

Last edited by afroresurrection; 07-26-2014 at 08:23 AM.
 
Old 07-26-2014, 08:32 AM   #3
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by afroresurrection View Post
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.
 
Old 07-26-2014, 11:02 AM   #4
afroresurrection
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
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.
 
Old 07-26-2014, 11:53 AM   #5
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by afroresurrection View Post
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).

Last edited by -Snake-; 07-26-2014 at 11:56 AM.
 
Old 07-27-2014, 07:26 AM   #6
-Snake-
Member
 
Registered: Feb 2014
Location: /home/snake
Distribution: Archlinux and Debian
Posts: 56

Original Poster
Rep: Reputation: Disabled
I resolve the problem with "Subsystem sftp /bin/false" to the enf of file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SFTP logging for Chroot on CentOS 6.2 with openssh-5.3 not working (internal-sftp) RatherBFishin Linux - Server 1 08-30-2012 06:45 PM
[SOLVED] OpenSSH SFTP chrootDirectory groundhoggie Linux - Server 1 07-23-2011 05:29 PM
openssh sftp johnh10000 Linux - Software 1 05-28-2010 03:13 PM
openssh and sftp problem saifkhan123 Linux - Server 4 09-15-2009 01:52 AM
dont want sftp on OpenSSH e1000 Linux - Software 3 12-08-2004 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration