Hossein
Hossein

Reputation: 31

How to unmount (close the mount) for sshfs Windows?

I've seen lots of posts dexcribing how to mount a remote directory on the local Windows machine using sshfs-win. But I don't know how to close the mount (unmount), once I'm done?

I really appreciate your help.

Upvotes: 3

Views: 4811

Answers (1)

Alexis Delahaye
Alexis Delahaye

Reputation: 694

Had the same problem.

We cannot use windows "native" unmount (net use X: /delete) because for windows the sshfs-win mount is not a network drive but a physical drive (net use returns empty set)

enter image description here

I managed to disconnect this mount by killing sshfs, as it is recommended to do

The windows equivalent to the linked answer is :

taskkill /f /im sshfs.exe

or less brutal:

# GET PID
tasklist | findstr /i "sshfs"
# KILL PID
taskkill /PID pid_value

This will clear the mount and free the drive letter, so you can mount later on the same disk.

enter image description here

Upvotes: 3

Related Questions