Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2006
    Posts
    94

    Question Disable SFTP

    How can we disable the SFTP for our users when using FTP without disabling any other security features in shell?

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default

    SFTP is really just FTP-like behaviour through an SSH connection, so you can't really take away SFTP features without revoking shell access.

    May I ask why you want to remove SFTP access?

  3. #3
    Member
    Join Date
    Mar 2006
    Posts
    94

    Default

    I've finally gotten all of my users used to using WS_FTP in order to access their sites..

    now i get complaints because people dont know how to activate SFTP in WS_FTP in order to upload files....

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Probably more info over at openssh.org, however, commenting out the following line from /etc/ssh/sshd_config and restarting sshd may well do it:

    Subsystem sftp /usr/libexec/openssh/sftp-server
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Jun 2005
    Posts
    119

    Default

    Well.. this came in nice time... I have been seeking the possibility of using SFTP or FTP over SSL with my cpanel box.

    Guys.. can you tell me how do I create a SFTP account with cpanel and how do I configure my SmartFTP client?

    In fact I did not even know cpanel has SFTP capabilities

  6. #6
    Member
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    63

    Default

    I think you may be a bit confused. SFTP is a secure form of file transfer which is integrated with the openssh package. FTP using SSL, however, is a different story. If you want to use FTP with SSL then you'll need to consult the documentation for pure-ftpd or proftpd(or whatever ftp daemon you're using). And cPanel itself doesn't necessarily have integrated SFTP capabilities, basically any UNIX box with SSH has that capability.

Similar Threads & Tags
Similar threads

  1. Ability to disable SFTP
    By bspiller in forum Feature Requests for cPanel/WHM
    Replies: 25
    Last Post: Today, 11:07 AM
  2. Allow SFTP without Shell?
    By Selena in forum New User Questions
    Replies: 16
    Last Post: 10-02-2009, 03:44 PM
  3. how to disable ssh and keep sftp working
    By konrath in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-04-2009, 11:45 AM
  4. JailShell for SFTP?
    By yeahoi in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-27-2008, 09:44 AM
  5. Sftp
    By seby in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-01-2007, 03:21 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube