Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

ssh tunneling / proxying / workaround jobbie

  • 09-08-2006 11:56AM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    ok...I can ssh into a solaris 10 box. From this solaris box, I can ssh into my work desktop (ubuntu 5.10). I can run freenx on my work desktop, but not on the solaris box. Is there any way of tunneling / proxying through the solaris box directly to the ubuntu box? x forwarding isn't really an option as I only have a dsl connection.

    AFAIK, only port 22 on the solaris box is open,externally and access is controlled by external IP.


Comments

  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Some nerds you lot are! :P


  • Registered Users, Registered Users 2 Posts: 4,864 ✭✭✭MunsterCycling


    Do we have a sticky on Tunnelling etc as per Khannie's title?

    Would find it useful if all the NIX heads could stick up suggetsions / howtos or point in the general direction of good info sources on same.

    Sorry for the hijack (oops the Brits will probably be after me now) Khannie.

    MC


  • Closed Accounts Posts: 437 ✭✭Yook


    Khannie wrote:
    AFAIK, only port 22 on the solaris box is open

    I think thats why no-one is answering. A workaround would probably mean putting daemons on the sun box and possibly the other box to route the traffic via an ssh connection. :eek: Very haxy stuff.


  • Registered Users, Registered Users 2 Posts: 354 ✭✭AndrewMc


    Khannie wrote:
    ok...I can ssh into a solaris 10 box. From this solaris box, I can ssh into my work desktop (ubuntu 5.10). I can run freenx on my work desktop, but not on the solaris box. Is there any way of tunneling / proxying through the solaris box directly to the ubuntu box? x forwarding isn't really an option as I only have a dsl connection.

    AFAIK, only port 22 on the solaris box is open,externally and access is controlled by external IP.

    I don't know much about FreeNX, but I'm going to assume that it listens on a single, fixed port number on your work PC, let's say 1234. If so, ssh has a port-forwarding option -L you can use, which opens a (listening) port on the local PC. When a connection is made to this port it's forwarded to the requested destination host and port. So, something like:
    ssh -L 5678:ubuntupcname:1234 username@solarisbox
    
    should work. You can then point your FreeNX client at localhost:5678 and ssh will pass that on to port 1234 of the ubuntu PC.


  • Closed Accounts Posts: 884 ✭✭✭NutJob


    Wouldnt a VPN be a better option for multiple machine access?

    SSh tunnel forwarding is the only way im aware of to do this. How would DSL rule this out?


  • Advertisement
  • Technology & Internet Moderators Posts: 28,862 Mod ✭✭✭✭oscarBravo


    ^ What Andrew said. I use this ssh feature literally every day.


  • Closed Accounts Posts: 437 ✭✭Yook


    AndrewMc wrote:
    ssh -L 5678:ubuntupcname:1234 username@solarisbox
    

    That is fantastic! I must remember to use this one.


Advertisement