Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Connecting to a local network from an ubuntu machine (using ssh)

  1. #1
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Connecting to a local network from an ubuntu machine (using ssh)

    Hi guys...I want to connect to a ubuntu machine on a local network (behind a DSL modem ) from a ubuntu machine on another different network via SSH .

    Also to a ubuntu server ( on the same remote network) from my firefox .


    how can i do that ?


    thank you .

  2. #2
    Join Date
    Mar 2011
    Location
    UK
    Beans
    125
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    Hi

    You can do this one of a couple of ways, either with port forwarding so you'd add a rule in your router that redirects any traffic it gets on port 8022 to port 22 on the ip of your local ubuntu box. Theres tons of material out there on how to do this. The other way is to set up a vpn, you might want to investigate logmein's hamachi linux beta as well as haguichi which is a graphical front end as the linux beta is currently command line only. From there create a network in hamachi and add all machines to it.

    https://secure.logmein.com/es/labs/
    http://www.haguichi.net/

    Hope this helps!

    Barry
    Desktop: Z77X-UD5H, Intel i7 3770k, NVidia GeForce 660 Ti Sli 16GB DDR3 RAM 2TB HDD
    OSes: Mint 14 x64 Windows 7 Ultimate x64
    Laptop: Dell Latitude E6430
    OSes: Ubuntu 13.04 x64, Backtrack 5 R3

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    To get access to your local network from the outside you'll have to use your DSL modem to forward the desired ports. In addition to port 22 mentioned above for SSH, to get web access you'll need to forward ports 80 and 443.

  4. #4
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    Hi guys...i gone to my DSL modem , advanced , NAT , port mapping and i do what you said to me (about forwarding our ports ) but nothing happened.

    Also please tell me what is SSH's syntax to i connect to a local network ( ssh username@aLocalIP i don't think that hhh)


    thanks .

  5. #5
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    ssh on the local net

    To connect from one machine on your local network to another machine on your local network you only need to know the username and IP number.

    Code:
    ssh username@xx.yy.zz.aa
    If that is not working then there is something wrong over on the SSH server. Either sshd is not running or there is a firewall blocking the connection.

  6. #6
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: ssh on the local net

    Quote Originally Posted by Lars Noodén View Post
    To connect from one machine on your local network to another machine on your local network you only need to know the username and IP number.

    Code:
    ssh username@xx.yy.zz.aa
    If that is not working then there is something wrong over on the SSH server. Either sshd is not running or there is a firewall blocking the connection.
    Hi...i want from a local network to another different local network .

  7. #7
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    The remote local network that you wish to connect to is either behind a router or a jump host. If it's a router, port 22 needs to be forwarded to the host on that local network you wish to connect to. Then it's just a matter of connecting to the router and it automatically connects you to the other host.

  8. #8
    Join Date
    Oct 2012
    Beans
    212
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    Quote Originally Posted by Lars Noodén View Post
    The remote local network that you wish to connect to is either behind a router or a jump host. If it's a router, port 22 needs to be forwarded to the host on that local network you wish to connect to. Then it's just a matter of connecting to the router and it automatically connects you to the other host.
    A nice abstaction for my post .

    so my post simply how do i enable forwarding to a internal host from a external host.


    i'm waiting you guys .

  9. #9
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    You need to clarify what you have on the receiving end. Is it a router? Then the specifics of port forwarding vary depending on both make and model. If you have a more general purpose computer, then you can use ssh all the way through.

    Which is it?

  10. #10
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Connecting to a local network from an ubuntu machine (using ssh)

    Here is a web site that claims to have instructions:

    http://portforward.com/routers.htm

    But it is possible that you specific model might not be listed.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •