Package: sshfs
Version: 2.5
Mounting a remote directory with sshfs options
"ServerAliveInterval=1,ServerAliveCountMax=1"
and entering the wrong password causes sshfs to hang.
### Reproduction
First, set an empty config file to ensure consistent ssh options
touch /tmp/empty
Run sshfs with the options
sshfs user@ssh:/tmp /tmp/ssh -F /tmp/empty -o NumberOfPasswordPrompts=1,
ServerAliveInterval=1,ServerAliveCountMax=1
Enter the wrong password for user@ssh .
sshfs hangs.
This is undesirable behavior.
The process can be killed with <Ctrl+c> keyboard input. The unsuccessful
mount point remains mounted but is empty.
Change either of the passed -o options "ServerAliveCountMax=1" or
"ServerAliveInterval=1" . sshfs does not hang (desired behavior). For
example, repeat the prior reproduction steps but remove
"ServerAliveCountMax=1"
sshfs user@ssh:/tmp /tmp/ssh -F /tmp/empty -o NumberOfPasswordPrompts=1,
ServerAliveInterval=1
Now sshfs fails after 4 seconds with error message
read: Connection reset by peer
This is desirable behavior.
### Software used
# sshfs --version
SSHFS version 2.5
FUSE library version: 2.9.4
fusermount version: 2.9.4
using FUSE kernel interface version 7.19
On Ubuntu 16.04.3 using kernel 4.4.0-92.
*James Thomas Moon*, Senior Software Development Engineer in Test