Ubuntu: how to mount remote linux file system using sshfs (over ssh)

#preparation: # 1) install sshfs sudo apt-get install sshfs # 2) Uncomment 'user_allow_other' at /etc/fuse.conf # 3) We create the mount point (name it as you want, I named /mnt/remotefolder) sudo mkdir /mnt/remotefolder sudo chmod -R 777 /mnt/remotefolder # 4) Mount remote folder (change <values> as you need): sshfs -o allow_other -o reconnect -o ServerAliveInterval=15 \ <user>@<host address>:/<remote path> /mnt/remotefolder -p <remote ssh portNo>
Connect remote folder using ssh.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.