How to easily, quickly and temporarily (without playing around with mount
and fstab
) mount a filesystem on Linux
-
Install
sshfs
apt (Ubuntu / Debian / Mint)
sudo apt update -y sudo apt upgrade -y sudo apt install sshfs -y
dnf (Fedora / CentOS / Red Hat Enterprise Linux)
sudo dnf check-update sudo dnf upgrade -y sudo dnf install sshfs -y
pacman (Arch)
yes | sudo pacman -Syu sshfs
-
Create a mount point
sudo mkdir /mnt/<folder_name>/
- Mount the remote filesystem
sudo sshfs <remote_user>@<host>:<path> /mnt/<folder_name>/
* To unmount, simply run: sudo umount /mnt<folder_name>/