[Bug 3762] New: ForkAfterAuthentication doesn't work with Windows native SSH

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Dec 7 05:11:29 AEDT 2024


https://bugzilla.mindrot.org/show_bug.cgi?id=3762

            Bug ID: 3762
           Summary: ForkAfterAuthentication doesn't work with Windows
                    native SSH
           Product: Portable OpenSSH
           Version: 9.5p1
          Hardware: Other
                OS: Windows 10
            Status: NEW
          Severity: normal
          Priority: P5
         Component: ssh
          Assignee: unassigned-bugs at mindrot.org
          Reporter: devstemail at gmail.com

When using Windows 10 or 11 native OpenSSH client,
ForkAfterAuthentication won't fork/send the ssh connection to the
background.

`ssh my-tunnel`

SSH config file:

```
Host my-tunnel
        User foo
        RemoteForward 9099 localhost:9003
        Hostname bar.com
        SessionType none
        RequestTTY no
        ServerAliveInterval 300
        ForkAfterAuthentication yes
        IdentitiesOnly yes
        PreferredAuthentications publickey
        PasswordAuthentication no
        IdentityFile C:\Some\Path\private.key
```

(same issue when using -f instead of ForkAfterAuthentication)

When using ssh that comes bundled with e.g. "Git for Windows", it works
perfectly fine though.
I found that there was a fixed bug for Cygwin
https://bugzilla.mindrot.org/show_bug.cgi?id=1278 (via
https://superuser.com/questions/965374/setup-ssh-in-background-windows),
which I assume is what also fixed this for the ssh that comes with "Git
for Windows".
However for the native OpenSSH ssh client it's not working still.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list