I tried to create a windows service using the srvany program, but it didn't work.
Here is the command line I would like to make into a service.
c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server
It is a command to tunnel a port over ssh. It doesn't run in the background, it just waits for me to press [control]-c. While it is running it forwards information to localhost:1729 to port 80 on foo.com.
I would like to always run this when the computer is on. It doesn't have to be a service if there is another way. Does anybody know how to do this?