Saturday, January 24, 2015

networking - Setting up multiple linux home servers to access from outside home


I am trying to set up several server to which I can SSH from outside networks and the following things come to mind.


If I use a solution similar to this previous question then it means that I can only forward 1 ssh port 22.


Possible options:



  1. Should I just give all of the servers different non-standard ssh ports? That seems to be a good idea for security and being able to keep the same solution of port forwarding.



    1. The other option is to setup a VPN to my home network and then keep all SSH access within my local network. Is this last option more secure, the same, or less secure than option 1?



Finally, is there any other way you would implement this? are there any workarounds to check what my home server IP is from the outside network given the fact that I don't have a Static IP.


Answer



If you have the option to use a VPN, I would take that route. While forwarding the individual SSH sessions would work, a VPN gives you a lot more flexibility. You only need to worry about VPN access and then you have the ability to use any port or service per machine.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...