Find the answer to your Linux question:
Results 1 to 4 of 4
Hi. Let me start off by saying that I'm very new to all this. I have a router in my house with two computers connected to it. What I want ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4

    SSH between two boxes on same router


    Hi. Let me start off by saying that I'm very new to all this.

    I have a router in my house with two computers connected to it. What I want to do is be able to SSH from one to the other, going directly through the router, instead of going through the internet (so: [box1 -> router -> box2] instead of [box1 -> router -> internet -> router -> box2]). Is there a way to do this?

    Forgive me is this is elementary; I'm still getting my feet wet.


    Thanks!

  2. #2
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    On box one do:
    Code:
    ssh 192.168.0.2
    replace 192.168.0.2 with box 2's internal IP which you can get on box two with the command
    Code:
    /sbin/ifconfig
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

  3. #3
    Just Joined!
    Join Date
    Nov 2005
    Posts
    4
    I had a feeling it might be something that easy. Thanks!

    Another question: is there a way to get my router to display the internal IP addresses of all devices connected to it?

  4. #4
    Linux Guru dylunio's Avatar
    Join Date
    Aug 2004
    Location
    Cymru
    Posts
    4,157
    Quote Originally Posted by mytruehero
    Another question: is there a way to get my router to display the internal IP addresses of all devices connected to it?
    Erm, I think it depends on the router. Type in the IP of the router (usually the same as the IP on your computer, but with a 1 as the last number) in a web browser and you should get some kind of configuration page for the router, look through it to see if it has a table with the IP's of the connected computers... (the above is true for my BT Vayager2000 router, and it should be true of others as well).
    Registered Linux User #371543!
    Get force-get May The Source Be With You
    /dev/null
    /dev/null2

Posting Permissions

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