128
rated 0 times
[
128]
[
0]
/ answers: 1 / hits: 194249
/ 1 Year ago, sun, april 9, 2023, 8:49:46
How to mount a remote directory using SSH
to be available same as if it is a local directory?
More From » mount
How to mount a remote directory using SSH
to be available same as if it is a local directory?
First install the module:
sudo apt-get install sshfs
Load it to kernel:
sudo modprobe fuse
Setting permissions (Ubuntu versions < 16.04):
sudo adduser $USER fuse
sudo chown root:fuse /dev/fuse
sudo chmod +x /dev/fusermount
Now we'll create a directory to mount the remote folder in.
I chose to create it in my home directory and call it remoteDir
.
mkdir ~/remoteDir
Now I ran the command to mount it (mount on home):
sshfs [email protected]:/home/maythuxServ/Mounted ~/remoteDir
Now it should be mounted:
cd ~/remoteDir
ls -l