Open aryarm opened 4 years ago
Ok, I made a first attempt. The code is in commit 781d0f3
Still to do:
user_allow_other
config option in /etc/fuse.conf
sshfs
(or ssh
?) not being installedsshopen
command with the regular open
command? (related to #90)
open
command in the futuresshfs
options and make sure they're how you want them
sshopen
becomes more of a wrapper around sshfs
, exposing all of its functionality to the user
cd
into the mount
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 ofsshfs
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...