Sshfs Mounting On CentOS 6.9

Home » CentOS » Sshfs Mounting On CentOS 6.9
CentOS 1 Comment

Hi all,

I am trying to mount on boot a SSHFS filesystem.

I have tried this in /etc/fstab

backup@myserver.com:/home/backup/myserver /backup fuse.sshfs nonempty,allow_other 0 2

but only works when network works.

I have also tried this in my crontab:

@reboot SSHFS -o idmap=backup myserver.com:/home/backup/myserver /backup

but doesn´t seem to work either.

What else can I try?

Thanks,

Miguel


This email has been checked for viruses by AVG. http://www.avg.com

One thought on - Sshfs Mounting On CentOS 6.9

  • El 16/1/18 a las 23:04, Miguel González escribió:

    Try adding the options:

    _netdev: The filesystem resides on a device that requires network access
    (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

    delay_connect: delay connection to server

    So, change your fstab entry:

    backup@myserver.com:/home/backup/myserver /backup   fuse.sshfs
    _netdev,delay_connect,nonempty,allow_other  0    2

    Tell if works,

    Best,

LEAVE A COMMENT