SSH over internet (WAN)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bilibytes
    New Member
    • Jun 2008
    • 128

    #1

    SSH over internet (WAN)

    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:

    Code:
    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
    Recognized Expert Contributor
    • Sep 2008
    • 489

    #2
    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.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #3
      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.

      Comment

      Working...