Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: SSH to only 1 PC
PostPosted: Mon Jan 13, 2014 11:40 pm 
Offline
Junior Member

Joined: Wed Oct 09, 2013 6:02 am
Posts: 22
I'm the only one handling linux system in office for our linode server. I want SSH/putty remote access to be allowed from my computer only. so that it'll reduce the chances of getting hacked from other locations.

How to make sure that nobody gets access when they attempt to log in via other location (other than office LAN)


Top
   
 Post subject: Re: SSH to only 1 PC
PostPosted: Tue Jan 14, 2014 12:37 am 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
#iptables -A INPUT -p tcp -s <your.public_ip.goes.here> -m tcp --dport 1022 -j ACCEPT

*assuming you've already changed the default port that sshd listens to TCP1022

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
 Post subject: Re: SSH to only 1 PC
PostPosted: Tue Jan 14, 2014 12:12 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Alternatively add an IP address to the start of your public key line in ~/.ssh/authorized_keys
Code:
FROM="Source IP or hostname" ssh-rsa BLAHBLAHBLAH..


Or you could do both.

Setup SSH to only use public key authentication and set a really good password for your Linode account.


Top
   
 Post subject: Re: SSH to only 1 PC
PostPosted: Tue Jan 14, 2014 2:12 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
He could edit /etc/ssh/sshd_config and use AllowUsers user@ip syntax.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group