V
V
Viktor Yanyshev2018-05-22 16:10:31
linux
Viktor Yanyshev, 2018-05-22 16:10:31

How to correctly write the sshfs mount command to fstab?

I sent a pubkey to the server from which I mount the directory. Check if it works or not:

sshfs [email protected]:/home/u1_1/files/ /var/www/u1_2/www/remote_files -o port=22 -o reconnect -o follow_symlinks -o nonempty -o allow_other

In /etc/ssh/ssh_config:
Host 11.11.11.11
   IdentityFile ~/.ssh/id_rsa 
   Port 22

The root also has a secret key from 11/11/11/11.
Added to fstab:
#
/dev/vda2       /               ext4    errors=remount-ro 0       1
sshfs#[email protected]:/home/u1_1/files/ /var/www/u1_2/www/remote_filess fuse comment=sshfs,port=22,auto,reconnect,follow_symlinks,nonempty,allow_other 0 0

Rebooted the server, but the directory with u1_1 was not mounted. Why is it not mounted, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2018-05-22
@villiwalla

Google is broken?
https://wiki.archlinux.org/index.php/SSHFS_(%D0%A0...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question