Win32-OpenSSH
Win32-OpenSSH copied to clipboard
SSH Client starts the Port forwarding but doesn't go into the background.
trafficstars
Prerequisites
- [X] Write a descriptive title.
- [X] Make sure you are able to repro it on the latest version
- [X] Search the existing issues.
Steps to reproduce
ssh -fN -L 7005:remotehost:3389 jumphost
Expected behavior
SSH Client starts to Port forward, vanishes into the background and keeps the tunnel open.
Actual behavior
SSH Client keeps in foreground after Port forwarding.
Error details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.22631
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
Visuals
No response
This bug existed in the portable OpenSSH too and was fixed https://bugzilla.mindrot.org/show_bug.cgi?id=1278 (via https://superuser.com/questions/965374/setup-ssh-in-background-windows) - possibly the same fix can be applied here too?