Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > Control Panel Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-09, 00:32
BOD Member
 
Join Date: May 2009
Posts: 45
Default Restrict SSH to IP

Hello. Can one set it so that SSH access is restricted to just my IP or IP range? Call me paranoid, but I don't want to take the risk of someone else logging in to my server if they somehow manage to get a hold of my SSH login details.
Reply With Quote
  #2 (permalink)  
Old 06-22-09, 06:16
BOD Member
 
Join Date: Jun 2009
Posts: 50
Default

I think you can use iptables to block other IP addresses from accessing your server through SSH. I'm not sure of the actual method, though. Perhaps someone else here knows more about it.
Reply With Quote
  #3 (permalink)  
Old 06-22-09, 07:00
Moderator
 
Join Date: Mar 2009
Posts: 363
Default

Quote:
Originally Posted by userdan View Post
Hello. Can one set it so that SSH access is restricted to just my IP or IP range? Call me paranoid, but I don't want to take the risk of someone else logging in to my server if they somehow manage to get a hold of my SSH login details.
Yes that can be done. You can allow/restrict IP's using hosts.allow and hosts.deny file.

/etc/hosts.allow
/etc/hos.deny

If you are not sure on how to do this, you can contact your hosting provider.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 10:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.