Connecting Tech Pros Worldwide Forums | Help | Site Map

SSH over internet (WAN)

bilibytes's Avatar
Familiar Sight
 
Join Date: Jun 2008
Location: Europe
Posts: 128
#1: Apr 2 '09
Hi there,

I was wondering if there is a way to connect to a machine through the internet knowing the WAN IP and the LAN IP.

I would like to know if a command like:

Expand|Select|Wrap|Line Numbers
  1. ssh username@WAN-IP:LAN-IP
exists.

How would you perform that.

I was googleing around and it looks like it is not possible. I found people saying that if you had the WAN IP you had to have the remote local-network redirect all requests to a single machine.

Maybe concatenating the wan and the lan would allow the router to forward the request.

If you have any suggestions please let me know

Thank you,

Regards


Bilibytes

DonRayner's Avatar
Expert
 
Join Date: Sep 2008
Location: Canada
Posts: 494
#2: Apr 4 '09

re: SSH over internet (WAN)


If you are connecting across a true WAN that means that the two machines are already on the same network. You should be able to connect from one to another just using the machines IP address.

If you are trying to connect from outside the network then the Router that you are connecting to will have to redirect your connection request to the internal IP of the machine you are attempting to connect to. Without this "Port Forwarding" setup you will not be able to see any of the internal ip address.
NeoPa's Avatar
Administrator
 
Join Date: Oct 2006
Location: London - UK
Posts: 15,737
#3: Apr 13 '09

re: SSH over internet (WAN)


What's the status of the remote machine Bili?

If it's behind a firewall (that's blocking the traffic) then there is no way, regardless of how you tell it to connect.
Reply


Similar Networking bytes