Skip to main content

Enabling SSH Tunnel on Windows Startup

TunnelHow to enable tunneling into given webservers on startup, usingon Windows.Windows, instead of having a PuTTY window open just for that purpose.

#

Step 1: Create PuTTY session that will be used for the tunnel
(it

To work properly, your session must be authed byvia key,PPK, noand passphrase)not require any passphrase.

#

Step 2: Create a task

 in Task Scheduler

Windows -> Task Scheduler -> Create Task. TaskThe MUSTtask must be set to "Run whether user is logged in or not" to avoid the command prompt window sittingused aroundto launch plink staying on the screen.screen until the plink session ends.

Set condition to "On startup". Set action executable to plink (Usually in C:\Program Files\PuTTY\plink.exe), and arguments to -batch "<your PuTTY session name>". Enable run with highest privileges.

Run the task and test that the tunnel works correctly.