Ubuntu – Access remote server with Nautilus through double SSH tunnel

nautilussshssh-tunneltunnelingUbuntu

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/

Best Answer

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