ssh file system: fuse mount for sftp

I recently wanted to remote mount drives on a server I maintain and I didn’t really want to add any services, so I fired up an ssh file system. There are good tutorials describing how to install fuse if it isn’t already and various configuration pieces, and pretty quickly I was able to manually mount a drive. But I found it fairly confusing to get the fstab incantation right. Maybe you are too, whether you are different from me, or just a future me looking to repeat this.

sshfs#remote_user_name@server_dns_name:/var/www/data /home/localusername/mount_point_path fuse user,_netdev,reconnect,uid=1000,gid=1000,idmap=user,allow_other,port=ssh_port,IdentityFile=/home/local_user_name/.ssh/id_rsa 0 0

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.