Linux SSHFS

Post tags: | linux | network_files | sshfs |

wiki.archlinux.org SSHFS

SSHFS is a FUSE-based filesystem client for mounting remote directories over a Secure Shell connection.

Automount on boot

        An example on how to use sshfs to mount a remote filesystem through /etc/fstab
        
        USERNAME@HOSTNAME_OR_IP:/REMOTE/DIRECTORY  /LOCAL/MOUNTPOINT  fuse.sshfs  defaults,_netdev  0  0
        
        Take for example the fstab line
        
        llib@192.168.1.200:/home/llib/FAH  /media/FAH2  fuse.sshfs  defaults,_netdev  0  0
        
        The above will work automatically if you are using an SSH key for the user.
        See Using SSH Keys.
        
        If you want to use sshfs with multiple users:
        
        user@domain.org:/home/user  /media/user   fuse.sshfs    defaults,allow_other,_netdev    0  0
        
        Again, it is important to set the _netdev mount option to make sure the
        network is available before trying to mount.
        

Assign fixed ip address to host ivie

Maybe no fixed ip address needed

        ping ivie
        PING ivie.Home (192.168.0.4) 56(84) bytes of data.
        64 bytes from ivie.local (192.168.0.4): icmp_seq=1 ttl=64 time=0.059 ms
        

Use SSH keys