How to mount a remote directory over ssh on Linux

sshfs is a filesystem client based on ssh, with a FUSE implementation.

# install
$ sudo apt-get install sshfs | sudo yum install sshfs (EPEL)
$ sudo usermod -a -G fuse <user_name>

# mount remote directory, asking for user and password
$ sshfs my_user@remote_host:/path/to/directory <local_mount_point>
# unmount
$ fusermount -u <local_mount_point>

# mount on boot
$ cat /etc/fstab
sshfs#my_user@remote_host:/path/to/directory <local_mount_point> fuse user 0 0

from How to mount a remote directory over ssh on Linux

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s