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
Related videos on Youtube
Author by
D W
Updated on September 17, 2022Comments
-
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/
-
Zoredache almost 14 yearsSee this: serverfault.com/questions/91116/… Also check the ssh man page for ProxyCommand
-
Noam Manos over 6 years@DW - You can use FileZilla with sftp and port forwarding. Check out: superuser.com/a/1286681/141314
-
-
D W almost 14 yearsPerfect 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 almost 14 yearsThat 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 almost 14 yearsAnother 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 almost 14 yearsI 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 almost 14 yearsThat 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 almost 14 yearsNew question: serverfault.com/questions/162033/…