Question:
How to setup ssh port forwarding?
2010-09-10 07:37:17 UTC
Hey. I want to be able to connect to my computer from outside of my local network using ssh (from the command line). I have logged into my linksys router via http, but I'm a bit confused on how to use port forwarding. Can someone explain how I can get my router to forward any ssh requests to my computer?

Thank you in advance!
Four answers:
Adrian
2010-09-10 07:45:19 UTC
Port forwarding SSH is a bit risky, using port 22 itself. Thousands of hackers probe all IP address with SSH, port 22. You will get thousands of login attempts unless you hide SSH better.



One option is to configure your SSH service to use another, unused, port. I sometimes use 22222 or 22123. Then, common probes on port 22 will fail for all those hackers.



In some cases, some routers will do port address translation (PAT), so incoming WAN SSH request on port 22222 gets translated to LAN port 22, allowing you to use SSH with it's default settings internally, but have to use the other port externally (that is how I have by Linux boxes set - my roiuters do PAT)



In all cases, your computer on the LAN that you are SSH'ing to must be at a static LAN IP address, else if it changes due to DHCP, you may not connect. Once you have the static LAN IP address, go into the router and port forward the incoming SSH port (whatever method you use) to the IP of the PC you are trying to connect to...
2010-09-10 07:39:33 UTC
Answered this in your other question as well.



http://www.portforward.com



Use the site above to get instructions on how to forward ports on your router. To forward SSH, your router may have ports defined by name. If there is no port called SSH, use port 22.
Paul
2014-07-17 22:35:09 UTC
You need to open have access to your modem/router and set port forwarding to forward port 22 to a local IP address.

Watch this youtube on how to create an FTP server which explains clearly on port 22. Theres part 1 and part 2.

https://www.youtube.com/watch?v=_14UfohfTdI

https://www.youtube.com/watch?v=1qpInSjKDyc





If you need an Free SSH software tool, check out this site:

http://syncrohost.com/kb/ssh-with-windows-and-mac/
telesco
2016-10-26 03:20:43 UTC
Odds are that your artwork pc is on the decrease back of a agency agency firewall. This prevents VNC website travellers from being waiting to achieve the artwork pc. keeps hackers from being waiting to stay with VNC (or similar techniques) to hack into the agencies community. communicate on your kit administator. they could have a way in position that you'll remotely get get suitable of entry to on your artwork pc from living house. many times a version of VPN as this is plenty better preserve.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Continue reading on narkive:
Loading...