Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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/
share|improve this question
    
See this: serverfault.com/questions/91116/… Also check the ssh man page for ProxyCommand –  Zoredache Jun 9 '10 at 22:05

2 Answers 2

up vote 1 down vote accepted

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|improve this answer
    
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? –  D W Jun 9 '10 at 23:40
    
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 Jun 10 '10 at 8:24
    
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. –  Richard Holloway Jun 10 '10 at 8:38
    
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/… –  D W Jun 11 '10 at 8:25
    
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. –  Richard Holloway Jun 11 '10 at 21:29

If you are able to connect to the server via SSH, you should be able to log directly connecting to the server with

sftp://user@hostname/path_to_connect

It is working absolutely fine for me.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.