Dead simple SSH tunnel for my Windows users
Solution 1:
Bundle PuTTY's plink.exe
and a batch script that sets up the tunnel:
@plink -v -N -D 1234 user@host
Replace -D 1234
with your desired tunnel options (-D
, -L
, -R
; syntax same as in OpenSSH). (According to comments, you need -L 25565:localhost:25565
.)
To avoid users having to answer the SSH key verification prompt:
-
export PuTTY's cached key to a
.reg
file:reg export HKCU\Software\SimonTatham\PuTTY\SshHostKeys hostkey.reg
open
hostkey.reg
in Notepad;in the file, delete all other host keys except your Minecraft tunnel host;
add
@reg import hostkey.reg
as the first line of your batch script.