In Windows, I create a scheduled task on Windows startup:
C:\cygwin64\bin\ssh.exe -R 2222:127.0.0.1:3389 user@PublicHost
to expose my rdp service on a public-ip server, and I can connect rdp successfuly, but I cannot find ssh.exe in task manager, and when I shutdown windows, sometimes the 2222 port of PublicHost is not released, so later I boot windows again, the ssh.exe will give me a warning, port forwarding failed.
Is there a way to ask PublicHost to release the port (I don't have root access on PublicHost)?