sshfsでunmountできない場合

sshfsで接続が切れた時にunmountできなくなることがある。

そういうときはプロセスを一度切ってからunmountすればよい

pgrep -lf sshfs
kill -9 <id-of-sshfs>
diskutil unmount <mountpoint>  # for mac

pgrepの-lはlong output、-fはプロセス名以外からともマッチングさせる

Macでsshfsを使ってローカルからリモートのファイルを触る - Qiita

cannot umount or mount an sshfs volume after ssh connection cut · Issue #45 · osxfuse/osxfuse · GitHub

追記

sshfsでタイムアウトを抑制するには-o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3をフラグで与えればよい

linux - SSHFS mount that survives disconnect - Server Fault