Access remote server with Nautilus through double SSH tunnel

6,720

You should be able to tunnel the ssh connection through ssh.company.com to the internal server, using X forwarding and then launch nautilus on the remote machine.

This should work, although you will need to tweak things if you don't already have keys and user names already configured correctly.

ssh -t -X ssh.company.com ssh -X internalserver nautilus
Share:
6,720

Related videos on Youtube

D W
Author by

D W

Updated on September 17, 2022

Comments

  • D W
    D W over 1 year

    I'm trying to access my work computer from home. We are supposed to SSH into a server, say ssh.company.com and from there ssh into an xhost to to work, say xhost04.company.com. xhost04 is not directly accessible. How can I browse files on xhost04 from my home computer using nautilus (in ubuntu).

    To access the SSH host I would use:

    sftp://ssh.company.com/
    
  • D W
    D W almost 14 years
    Perfect thank you. One thing that is curious is that the layout of nautilus looks different than nautilus on my local machine. It is like the version of nautilus used comes is not the local one. Does that make sense? Is there a way to access the files with the local nautilus?
  • Richard Holloway
    Richard Holloway almost 14 years
    That is because you are actually running nautilus on the remote machine but forwarding the GUI to your local machine. You can configure it to look how you like in Edit>Preferences as you would locally.
  • Richard Holloway
    Richard Holloway almost 14 years
    Another idea is to mount internalserver:/ onto ssh.company.com:~/internalserver using sshfs and then mount ssh.company.com:~/internalserver onto localmachine:~/internalserver so you then have the internalserver filesystem available as ~/internalserver. It will allow local file access to files on internalserver, so that copy and paste will work and applications will see the files as local files. Speed may be an issue though as sshfs is not very fast but if it is something you use all the time it may be worth setting this up.
  • D W
    D W almost 14 years
    I don't know really understand the last solution but it seems like it may be useful. I will go through this tutorial on that topic when I get a chance: embraceubuntu.com/2005/10/28/…
  • Richard Holloway
    Richard Holloway almost 14 years
    That is an old resource and things are much easier now-a-days. Use help.ubuntu.com/community/SSHFS instead. Or post a new question.
  • D W
    D W almost 14 years