Tuesday, May 7, 2024
 Popular · Latest · Hot · Upcoming
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

 Answers
1

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

[#27231] Monday, April 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
laiuct

Total Points: 44
Total Questions: 105
Total Answers: 107

Location: Seychelles
Member since Mon, Feb 15, 2021
3 Years ago
;