Mounting an SSH Folder for Local Use in Ubuntu 15.04

If you want to mount another Linux machine’s files and use them as if they were local, then sshfs can help simplify the process:

Open your terminal and run the following:

1. Install sshfs:

[bash]
sudo apt-get install sshfs
[/bash]

2. Add your user to the fuse group:

[bash]
sudo adduser yourname fuse
[/bash]

3. Create a folder to mount the remote directory in:

[bash]
mkdir ~/yourmountdirectory
[/bash]

4. Mount the remote server:

[bash]
sshfs username@host:/remotepath ~/yourmountdirectory
[/bash]

You’ll be prompted to save the server key and your remote password.

If all went well, now you can use the directory as if it were local.

5. To unmount use this command:
[bash]
fusermount -u ~/yourmountdirectory
[/bash]




Leave a Reply

Your email address will not be published. Required fields are marked *