Home ยป Edit fstab to mount sshfs while boot up

Edit fstab to mount sshfs while boot up

0 comment 72 views

Edit /etc/fstab
Add below command

user1@server_ip:/remote/path /mnt/local/path fuse.sshfs identityfile=/ssh/key/file/id_rsa,reconnect,ServerAliveInterval=30,allow_other,x-systemd.automount 0 0

Save the file
Execute mount -a to test it
If everything goes fine, then reboot the system to have final test

Leave a Comment