bryanlloydharris
asked on
can't create a windows service
Hi,
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?
Thanks!
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?
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
or create a Shortcut with "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server" and stick it into the startup folder
ASKER
Where is the Run registry key?