Go Back   cPanel Forums > cPanel® and WHM® (for Linux® and FreeBSD® Servers) > cPanel and WHM Discussions

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-28-2006, 06:39 PM
Registered User
 
Join Date: May 2006
Posts: 7
Mac Write is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-29-2006, 11:50 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
The latter is going to be tricky. The former you can do with the likes of rssh:
http://www.pizzashack.org/rssh/
__________________
Jonathan Michaelson
cPanel Forum Moderator

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-29-2006, 01:27 PM
Registered User
 
Join Date: May 2006
Posts: 7
Mac Write is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:28 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc