[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 239
  • Last Modified:

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!
0
bryanlloydharris
Asked:
bryanlloydharris
  • 2
1 Solution
 
sakuya_suCommented:
add "c:\windows\plink.exe -T -i c:\windows\pk.ppk -R 1729:foo.com:80 bryanh@server"

as a registry value to the Run registry key?
0
 
sakuya_suCommented:
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
0
 
bryanlloydharrisAuthor Commented:
Where is the Run registry key?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now