| Linode Forum https://forum.linode.com/ |
|
| SSH to only 1 PC https://forum.linode.com/viewtopic.php?f=19&t=10776 |
Page 1 of 1 |
| Author: | johnycage [ Mon Jan 13, 2014 11:40 pm ] |
| Post subject: | SSH to only 1 PC |
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) |
|
| Author: | vonskippy [ Tue Jan 14, 2014 12:37 am ] |
| Post subject: | Re: SSH to only 1 PC |
#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 |
|
| Author: | sednet [ Tue Jan 14, 2014 12:12 pm ] |
| Post subject: | Re: SSH to only 1 PC |
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. |
|
| Author: | jebblue [ Tue Jan 14, 2014 2:12 pm ] |
| Post subject: | Re: SSH to only 1 PC |
He could edit /etc/ssh/sshd_config and use AllowUsers user@ip syntax. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|