This project is read-only.

WinSCP kills PortForwardLocal

Sep 14, 2012 at 5:47 PM
Edited Sep 14, 2012 at 6:03 PM


I recently discovered an issue with PortForwardLocal. I connect to a ssh-daemon and add a local port forwarding for a ssh-daemon behind it.

Everything works fine with putty and nxclient. I can connect multiple times and close&reconnect.

But as soon I connect to the local forwarding with WinSCP a null-Pointer occurs as soon as I close WinSCP and try to connect to the PortForwarding with putty/WinSCP/nxclient.

The SSH-Session to the first ssh-daemon is still alive and works

I have no clue why WinSCP kills the forwarding. Any Ideas?

   bei Renci.SshNet.ForwardedPort.RaiseExceptionEvent(Exception execption) in c:\XXX\Renci.SshNet\Renci.SshNet\ForwardedPort.cs:Zeile 71.
   bei Renci.SshNet.ForwardedPortLocal.<>c__DisplayClass2.b__1() in c:\XXX\Renci.SshNet\Renci.SshNet\ForwardedPortLocal.NET.cs:Zeile 52.
   bei System.Threading.Tasks.Task.InnerInvoke()
   bei System.Threading.Tasks.Task.Execute()