I have remotely mounted a filesystem using SSHFS to directory /mnt/sshfs
.
I need to find out using a shell script if this SSHFS mount is working correctly or if there is a connection reset by peer
problem.
If I try to access such an SSHFS filesystem if it is in "disconnected state", the system freezes and waits until it eventually times out.
I want to avoid that. I need to know if SSHFS is working as expected or if there is some connection problem without freezing the system.