Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tunneling #93

Open
Astlaan opened this issue Jun 1, 2019 · 7 comments
Open

Tunneling #93

Astlaan opened this issue Jun 1, 2019 · 7 comments

Comments

@Astlaan
Copy link

Astlaan commented Jun 1, 2019

Is it possible to mount to a remote ssh host, while tunneling through a jump host?

@Astlaan
Copy link
Author

Astlaan commented Jul 10, 2019

Any update on this?

@billziss-gh
Copy link
Collaborator

This is not a scenario that SSHFS-Win supports directly. However the included sshfs.exe program can be run under Cygwin and supports most functionality found in Linux sshfs. So I find it likely that it should be possible, but I do not have a set of instructions for you to follow.

@burgerga
Copy link

Just create a LocalForward using a different ssh client, then you can just point sshfs to localhost[!PORT] to connect over your LocalForward.

@Astlaan
Copy link
Author

Astlaan commented Sep 29, 2019

Just create a LocalForward using a different ssh client, then you can just point sshfs to localhost[!PORT] to connect over your LocalForward.

This could work yes, thanks!
In the end, Syncthing worked for my purposes and I ended up using that one instead.

@Astlaan Astlaan closed this as completed Sep 29, 2019
@Astlaan Astlaan reopened this Sep 29, 2019
@pyhedgehog
Copy link

It runs pure cygwin ssh from openssh package. You can setup host in your ~/.ssh/config and use that name with sshfs.

@vonopr
Copy link

vonopr commented Jul 13, 2021

Editing ~/.ssh/config is not sufficient. The problem is that using either ProxyCommand or ProxyJump forces sshfs.exe to use some kind of sh.exe which is by default missing on the Windows' Path.

I have installed SSHFS into C:\software\SSHFS-Win directory. I tried to mount my home directory on remote server dest accessing it through an intemediate machine intermidiate.

C:\software\SSHFS-Win\bin\sshfs-win cmd -v user1@dest:.  R: -o ProxyJump=user2@intermidiate:1022  -o ssh_command="C:/software/SSHFS-Win/bin/ssh.exe"

The result was:

/bin/sh: No such file or directory
banner exchange: Connection to UNKNOWN port 65535: Broken pipe
read: Connection reset by peer

I downloaded win-bash and placed its sh.exe into my C:\software\SSHFS-Win\bin\sshfs-win\bin. And that helped. Thanks to @sevmonster and his #152 (comment).

@Maithy15
Copy link

Is there any new update on this??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

6 participants