简体   繁体   中英

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.

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)

在此处输入图像描述

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.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM