GiselleSerate / myaliases

Useful shell aliases and functions.
6 stars 1 forks source link

WSL 2 alternative to SFTP Net Drive using SSHFS #91

Open aryarm opened 4 years ago

aryarm commented 4 years ago

WSL 2 ships with FUSE support! Thus, in theory, it should be possible to use SSHFS on WSL 2 to mount a remote, ssh-accessible directory as a drive in Windows. This could serve as a replacement to SFTP Net Drive on Windows.

Unfortunately, there is a specific set of options that must be passed to sshfs when mounting a directory. In addition, users of sshfs will need to execute a couple cleanup commands to ensure the directory is correctly detached upon exit. It would be great if we could create a function/alias that would do all of this for us automatically...

aryarm commented 4 years ago

Ok, I made a first attempt. The code is in commit 781d0f3

Still to do: