PowerShell / PowerShell/Win32-OpenSSH

SSH Client starts the Port forwarding but doesn't go into the background.

Open
#2,209 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-ssh Issue-Bug
Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

Prerequisites
  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ssh -fN -L 7005:remotehost:3389 jumphost on Windows 10 with OpenSSH_for_Windows 9.5p1, then inspect the client code and existing tests for -f and port forwarding. Done means the client backgrounds after establishing the tunnel and keeps the forwarding session open.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.