The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'General Discussion' started by Mac Write, Sep 28, 2006.

  1. Mac Write

    Mac Write Member

    Joined:
    May 7, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  3. Mac Write

    Mac Write Member

    Joined:
    May 7, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
Loading...

Share This Page