Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2006
    Posts
    7

    Default How do I only allow SFTP access and restrict just root to certain IP's for SSH login?

    In an effort to secure my VPS which is for friends/family use, I want to temrinate FTP and only allow SFTP while preventing all other SSH functions. How can I pull this off? I also want to restrict root login to a couple IPs (Datacenter and my home IP), while allowing SFTP access for other users to any IP.

  2. #2
    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

    The latter is going to be tricky. The former you can do with the likes of rssh:
    http://www.pizzashack.org/rssh/
    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

  3. #3
    Member
    Join Date
    May 2006
    Posts
    7

    Default

    Had a friend install rssh last night. He figured it out (nice challenge for him). Works great! Now onto the next level of security run SFTP on a different port then SSH. THen move onto only allow root login via XX IP while leaving SFTP access for any IP.

Similar Threads & Tags
Similar threads

  1. Restrict Root Login
    By ruyrocha in forum Security
    Replies: 14
    Last Post: 05-02-2012, 04:03 PM
  2. Restrict Root Login
    By ruyrocha in forum Archived Feature Requests
    Replies: 4
    Last Post: 08-30-2011, 06:18 PM
  3. Unable to login via SSH or SFTP
    By scorched in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-29-2010, 10:54 PM
  4. Restrict SSH Access for a single user
    By nerdzoll in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-09-2008, 09:38 AM
  5. SFTP to root files with root login disabled; is su or sudo possible?
    By srjonah in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-12-2004, 02:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube