Win32-OpenSSH
Win32-OpenSSH copied to clipboard
Port forwarding / tunnelling with -fN doesn't go into the background
"OpenSSH for Windows" version
0.0.24.0
Client OperatingSystem Windows 10 Pro 1703
What is failing
ssh -fN -L2222:somehost:22 someotherhost should go into the background while the tunnel remains open
The tunnel works, but the command ties up the terminal - it doesn't go into the background
There is no concept of running background console jobs in Windows??
AFAIK no. You may use start ssh .... to achieve something close.
I don't know why for Windows openssh-portable doesn't support spawning the process and detaching from the console after credentials have been accepted, but if anyone desperately needs this I have a work around.
I've implemented a way to do it in this short pwsh script that you can dot-source, it works by spawning a Process which successfully establishes a connection and backgrounds itself, but there's no nohup equivalent if you're planning on closing the terminal after.
Are there news for this? I'm just using wsl for this reason for now to connect to hpc