Find the answer to your Linux question:
Results 1 to 3 of 3
Hello all, I have the following network setup. * A static IP from my ISP * A router/modem in my home * Two machines: MachineA and MachineB connected to the ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    59

    Running SSH on two separate machines?

    Hello all,

    I have the following network setup.

    * A static IP from my ISP
    * A router/modem in my home
    * Two machines: MachineA and MachineB connected to the router

    Currently, the router is setup so that ports 80, 21, and 22 all forward to ports 80, 21, and 22 on Machine A.

    However, I would like to be able to SSH into Machine B as well. What is the best way to accomplish this? I figured I would setup Machine B's SSH server to listed on a random port like 2995. So then I would configure my router so that incoming requests from port 2995 are forwarded to port 2995 on Machine B.

    Does that make sense? Is that the proper way to do it?

    Thanks!

  2. #2
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    The proper way would be to establisch a VPN server on the router.
    But this may be overkill for just two machines and only ssh.

    So yes, either create portforwarding on a non-standard port
    or just hop from machine A to machine B
    You must always face the curtain with a bow.

  3. #3
    Linux Newbie Nagarjuna's Avatar
    Join Date
    Feb 2011
    Posts
    122
    I have two Linux boxes at home, both running sshd. I forwarded all my ports to one machine, and simply SSH into that system. When I need to access the other machine, I then SSH into it from the one with the forwarded ports

Posting Permissions

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