Friday, March 19, 2021

ssh-fs win error 67

Recently had to map SSHFS on Windows, but got following error trying to assign a drive letter from CMD:

net use Z: \\sshfs\alex@127.0.0.1\
The password is invalid for \\sshfs\alex@127.0.0.1\.
Enter the user name for 'sshfs': alex
Enter the password for sshfs:
System error 67 has occurred.
The network name cannot be found.

However, the mapping was working from "MyComputer > Map Network Drive".

The fix for the error wasn't so obvious, but it was simply a missing quotes:

net use Z: "\\sshfs\alex@127.0.0.1\"
The password is invalid for \\sshfs\alex@127.0.0.1".
Enter the user name for 'sshfs': alex
Enter the password for sshfs:
The command completed successfully.