Run PuTTY as a Windows Service

How to Run PuTTY as a Windows Service with AlwaysUp

Automatically start a SSH Tunnel with PuTTY (Plink) whenever your computer boots and keep it running 24x7 in the background. No need to log on first


Last Updated on September 13, 2026

PuTTY is a free implementation of the Telnet and SSH protocols.


To install PuTTY as a Windows Service with AlwaysUp:

  1. If necessary, download and install PuTTY:

    Install PuTTY

  2. Construct the command that establishes your SSH tunnel using PuTTY's command line utility, Plink.

    For example, after consulting the Plink command line documentation, we decided to use this command to open up a tunnel from port 8022 on the local machine to port 80 on our web server at www.coretechnologies.com:

    plink.exe -ssh -2 -N -L localhost:8022:www.coretechnologies.com:80 -l <login> -pw <password> www.coretechnologies.com

    Note: Passing the password on the command line as above is insecure. For real-world environments, set up a PuTTY saved session or store your private key in Pageant as described in the PuTTY documentation.

    Before continuing, open up a command prompt and make sure that your command works as expected. Be sure to accept the server's host key if you're prompted to do so.

  3. Download and install AlwaysUp, if necessary.

  4. Start AlwaysUp.

  5. Select Application > Add to open the Add Application window:

    Add Application

  6. On the General tab:

    • In the Application field, enter the full path to PuTTY's command line executable, plink.exe.

      If you installed PuTTY in the default location, this will be:

      C:\Program Files\PuTTY\plink.exe
    • In the Arguments field, enter the parameters to Plink you identified in step 2.

      We recommend adding the -batch" parameter here as well. It disables interactive prompts, which you won't be able to answer when Plink is running unattended in the background.

    • In the Name field, enter the name that you will call the application in AlwaysUp. We went with PuTTY but you can specify another name if you like.

    PuTTY Windows Service: General Settings

  7. Move to the Logon tab and enter the user name and password of the Windows account where you have run your Plink command successfully — probably the one you're logged in to right now.

    AlwaysUp will run Plink in this account so that it can find its settings, saved host keys, etc.

    PuTTY Windows Service: Logon Settings

  8. Go to the Startup tab and check the Ensure that the Windows Networking components have started box. This informs AlwaysUp that Plink needs the network to be fully available to do its work.

    PuTTY Windows Service: Startup Settings

  9. We're done configuring PuTTY as a service so click the Save button to record your settings. In a couple of seconds, an application called PuTTY (or whatever you called it) will show up in the AlwaysUp window. It's not yet running though so the state will be "Stopped":

    PuTTY Windows Service: Installed

  10. To start PuTTY from AlwaysUp, choose Application > Start "PuTTY". The state will transition to "Running" after a few seconds and the tunnel will be established as expected:

    PuTTY Windows Service: Running

  11. That's it! Next time your computer boots, your SSH tunnel will fire up immediately, without anyone needing to log on. Please restart your PC now and test that everything works as expected after Windows reboots.

    And please feel free to edit PuTTY in AlwaysUp to check out the many other settings that may be appropriate for your environment.

    For example, send email alerts if the SSH tunnel breaks, boost the priority of plink.exe, and more.


PuTTY not working properly as a Windows Service?

  • Consult the AlwaysUp Troubleshooter — our online tool that can help you resolve the most common problems encountered when running an application as a Windows Service.

  • From AlwaysUp, select Application > Report Activity > Today to bring up an HTML report detailing the interaction between AlwaysUp and Plink. The AlwaysUp Event Log Messages page explains what each message means.

  • Browse the AlwaysUp FAQ for answers to commonly asked questions and troubleshooting tips.

  • Contact us and we will be happy to help!

Our 14,000+ customers include...
AlwaysUp is fully compatible with Windows 11 AlwaysUp is fully compatible with Windows Server 2025
Over 97,000 installations, and counting!
 
AlwaysUp is number 1! Run as a Service with AlwaysUp

Rock-solid for the past 20+ years!