How to mount remote directory using SSH ?
How to mount remote directory using SSH and make it available it as local directory. Install the module sshfs:
1 |
sudo apt-get install sshfs |
Load it to kernel
1 |
sudo modprobe fuse |
Set permissions
1 2 3 |
sudo adduser $USER fuse sudo chown root:fuse /dev/fuse sudo chmod +x /dev/fusermount |
Now create a directory to mount the remote folder in.
1 |
mkdir ~/remoteDir |
Run the command to mount remote directory
1 |
sshfs nishant@192.168.xx.xx:/home/public_html ~/remoteDir |
Now remote directory should be mounted.
1 2 |
cd ~/remoteDir ls -l |