Results 1 to 3 of 3

Thread: 2nd level ssh connection file browser

  1. #1
    Join Date
    Jan 2006
    Beans
    33

    2nd level ssh connection file browser

    In order to ssh in to server Y I must ssh in to server X.
    In the terminal:
    ssh xuser@X

    then once in X:
    ssh yuser@Y


    I would like to use Nautilus to get a sftp file browser for server Y, but it is impossible... or is it??

    Is there any tool out there for Ubuntu to do what I want?

    if so, how do I use that tool?

  2. #2
    Join Date
    Aug 2008
    Beans
    488

    Re: 2nd level ssh connection file browser

    one of the most beautiful things of SSH is the creation of tunnels.

    What you can do is login to server X and create a tunnel to the ssh-server on server Y already. you have to do these things on your local

    Code:
    ssh xuser@X -L 9999:Y:22
    The -L creates a tunnel that starts at you own computers port 9999 to the port 22 of server Y. So you can with Nautilus ssh connect to your localhost on port 9999 which effectively terminates on server Y. So as long as you keep the first session over you can tunnel your traffic.

    Code:
    ssh yuser@localhost:9999
    or
    sftp yuser@localhost:9999
    The traffic is double encrypted, so don't expect mega performance, unless you have really cool hardware

  3. #3
    Join Date
    Jan 2006
    Beans
    33

    Re: 2nd level ssh connection file browser

    you just tunnelled my life man!
    thanks so much, it works like a charm.

Tags for this Thread

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
  •