Gone are the days of finding a good FTP client and reading man pages trying to find out how the heck fuse works – mounting remote folders in Ubuntu nowadays is a breeze.
Note: This method was tested in Ubuntu 10.04, but should work similarly for Ubuntu 8.04 and later. For older versions of Ubuntu, please see this article.
Regardless of whether the remote computer is using FTP, SSH, WebDAV or Samba to share files, the method is basically the same.
Start by clicking on Places > Connect to Server.
Choose the type of service that you want to connect though, and then fill out the details for that server.
In our case, we’re going to connect to another Ubuntu machine through SSH, to ensure that data is transferred securely. We’ll use that machine’s IP address directly, but a host name like www.howtogeek.com works just as well.
Adding the server to your bookmarks is optional, but is nice if you’re going to access that server a lot, as it will show up in the Places menu and the bookmarks section of the file browser.
Since we’re using SSH, we get a message that this is the first time we’re connecting to this server. Choose to Log In Anyway.
While you specified the user name earlier, the password for this server is entered now. You can choose to remember the password forever, which is convenient, or you can choose to forget it if you’re on a public machine.
And that’s it! A link should appear on your desktop, and double-clicking it open the resource in the file browser.
But what if you need to use that resource from the command line? No problem!
The link to the mounted remote resource is found in ~/.gvfs/ (where ~ is a shortcut for your home folder – that is, /home/<username>).
To get there, open a terminal window (Applications > Accessories > Terminal) and enter the following in the terminal window.
Entering ls will allow you to see the any mounted remote resources. You may find that tab completion will help you greatly here (type in the first few letters of the link, and then hit tab and the rest will be completed automatically).
If you chose to add a bookmark earlier, then your remote resource is always a couple of mouse-clicks away! Sure beats having to use FTP clients and command-line utilities.