songcheng
4/17/2018 - 8:39 AM

sshfs

sshfs [user@]hostname:[directory] localdir

sshfs me@x.x.x.x:/remote/path /local/path/ -o IdentityFile=/path/to/key

On BSD and OS-X, to unmount the filesystem:

  umount localdir

~/.ssh/ :

ssh-copy-id user@host

vim /etc/ssh/sshd_config #ClientAliveInterval 60

#ClientAliveCountMax 30000 service sshd restart