search

Tuesday, May 19, 2015

fedora 21: How to mount remote filesystem via SSH

If you use vagrant for development you might need an access to the filesystem of the virtual machine. There is a way to mount a folder from your virtual machine to your local machine so you will be able to open and edit with your favourite code editor.

First step is to install fuse-sshfs package:
sudo yum install fuse-sshfs


Then you can mount folder from the virtual machine with command:
sshfs -o idmap=user vagrant@192.168.33.10:/home/vagrant /home/jsn/vagrant/vm

The first path is the path inside the virtual machine and the second one is for local machine.

No comments:

Post a Comment