SSH Tunnelling

SSH to Restricted Server via SSH Tunnel

If you have a server, Restricted_Server, which is only accessible via SSH from a gateway machine say, Gateway_Server, then to ssh to the Restricted_Server, the command you can use is

1. ssh -L 10000:Restricted_Server:22 Gateway_Server -N

The above command  says: create a ssh tunnel to the Gateway_Server and forward all localhost traffic on port 10000 to the Restricted_Server on its port 22.

2. ssh user@localhost -p 10000

Connect to the localhost as "user" on port 10000. Since the localhost port 10000 traffic gets forwarded to the Restricted_Server port 22, this allows us to connect to the Restricted_Server's ssh service

  • No labels

22 Comments

  1. Anonymous

    http://www.metatron4025.com
    http://www.hunter4025.com
    http://www.hunter4025.com/hunter-4025-nls-driver-and-software-free-download
    http://www.laser-watch.com
    http://www.health-machine.org
    http://www.e-healthmachine.net
    http://www.e-healthmachine.org
    http://www.e-healthmachine.com
    http://www.health-machine.net
    http://www.boruhealthmachine.net
    http://www.boruhealthmachine.org
    http://www.boruhealthmachine.com
    http://www.shengshou.cc
    http://www.o-bd.org
    http://www.3d-nls-health-analyzer.com
    http://www.skintestsystem.com
    http://www.health-machine.com
    http://www.3dnlshealthanalyzer.com
    http://www.maikong.cc
    http://www.e-dentaltools.com
    http://www.skin-analyser.com
    http://www.iridologycamera.org
    http://www.ion-cleanser.org
    http://www.quantum-resonance-magnetic-analyzer.com
    http://www.shengshou.cc
    http://www.e-iphoneparts.com
    http://www.iris160.com
    http://www.iriscope.org
    http://www.lasertherapymachine.com
    http://www.monkong.net
    http://www.high-voltage-therapy.com
    http://www.skin-observed-system.com
    http://www.monkon.net
    http://www.hongmoyi.org
    http://www.qra-software.com
    http://www.healthfactory160.com
    http://www.healthfactory160.net
    http://www.healthfactory160.org
    http://www.8dnls.net
    http://www.vector-9d-nls.com
    http://www.skin-observed-system.com
    http://www.nls-software.com
    http://www.ipp-metatron.com
    http://www.hydrogen-machine.com
    http://www.veterinary-ultrasound.cc
    http://www.monkonhair.com
    http://www.hair-extensions.cc
    http://www.human-hair.org
    http://www.cheap-hair-extensions.net
    http://www.wigs-for-sale.net
    http://www.virgin-brazilian-hair.com
    http://www.cheap-hair-extensions.net
    http://www.virgin-indian-hair.com
    http://www.virgin-european-hair.com
    http://www.virgin-peruvian-hair.com

  2. Anonymous

    ace payday loans payday loans <a href="http://cashadvances2017.com"> guaranteed payday loans</a> http://cashadvances2017.com - payday loan payday advance loans
  3. Anonymous

    http://inlottos24.ru
  4. Anonymous

    http://inbethall24.ru
  5. Anonymous

    http://in100slots.ru
  6. Anonymous

    http://maxxybets24.ru
  7. Anonymous

    http://maxslotz24.ru
  8. Anonymous

    http://maxprofitslots.ru
  9. Anonymous

    http://rollslots24.ru
  10. Anonymous

    http://rollsonline24.ru
  11. Anonymous

    http://rollslotz24.ru
  12. Anonymous

    http://joyslots24.ru
  13. Anonymous

    http://joybetsonline.ru
  14. Anonymous

    http://bingoslotz24.ru
  15. Anonymous

    http://bingomainia24.ru
  16. Anonymous

    http://bingomatic24.ru
  17. Anonymous

    http://bingobets24.ru
  18. Anonymous

    http://bingomachine24.ru
  19. Anonymous

    http://bingobetz24.ru
  20. Anonymous

    http://powerbets24.ru
  21. Anonymous

    http://powerspinz24.ru
  22. Anonymous

    http://www.thepinterribbon.com Pinter Ribbon
    http://www.dark-field-microscope.com dark field microscope
    http://www.nail-fold-capillaroscopy.com capillaroscopy,nail fold capillaroscopy,nailfold capillary microscopy

Write a comment…