Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a machine running Ubuntu 10.04. I have a VPS (virtual private server) also running Ubuntu Linux. The VPS has a dedicated IP.

I want to have a setup, so that the directories on the VPS are accessible on my HOME PC like a mounted drive.

That is I should be able to do things like edit files on the VPS and copy/move files from/to my home PC to the VPS, as if the VPS was mounted on my box.

How do I do it?

share|improve this question
add comment

2 Answers

up vote 0 down vote accepted

Connect to the server via Places | Connect to Server..., then the remote server will be accessible via ~/.gvfs.

share|improve this answer
    
nice! that was simple... its a bit too slow (much slower than normal ssh...any way to speed up?). –  cool Apr 9 '11 at 5:10
    
@cool: You can try sshfs, which allows you to mount an SSH server from the command line as if it were a local disk. I'm not sure that it will be any faster, though. Just run sudo apt-get install sshfs or locate it in Synaptic or the Software Center to install it. There are instructions for using it on the FUSE website. –  Patches Apr 9 '11 at 6:41
    
@cool, @Patches: FYI, if you choose "SSH" in the "Connect to Server" dialog, then it will use exactly the same SFTP protocol as sshfs uses. –  grawity Apr 10 '11 at 9:24
add comment

You could do it via NFS (a guide). Basically, you add the directories to /etc/exports on the server, along with the options and the IP address of your home PC, then you can add the remote shares to your /etc/fstab.

edit: I should add that this works well with a VPN. If you just want to connect to the server and copy files, you can just use sftp as Ignacio Vazquez-Abrams mentioned.

share|improve this answer
    
thank you.. i will try this –  cool Apr 9 '11 at 5:12
add comment

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.