RubyPDF Blog tutorial Just A Simple Trick to Keep SSH Proxy Always Online

Just A Simple Trick to Keep SSH Proxy Always Online

the internal network of our office is not very well, and the SSH is always offline/inactive,
so I do not feel bright, so how to solve it?
I use a DOS batch to run plink to setup my SSH Proxy,
plink -N   -pw password user@my_ssh_server   -D 127.0.0.1:1080
so I modify my DOS batch to use infinite loop (aka endless loop) to keep plink always work,
for /L %%i in (1,0,2) do plink -N   -pw password user@my_ssh_server   -D 127.0.0.1:1080
btw, I do not like there is always a DOS Window in my taskbar, so I use TrayRun to force my batch to run minimized in the Windows task tray

the internal network of our office is not very well, and the SSH is always offline/inactive, so I do not feel bright, so how to solve it?I use a DOS batch to run plink to setup my SSH Proxy, plink -N   -pw password user@my_ssh_server   -D 127.0.0.1:1080so I modify my DOS batch to use infinite loop aka endless loop to keep plink always work,for /L %%i in (1,0,2) do plink -N   -pw password user@my_ssh_server   -D 127.0.0.1:1080btw, I do not like there is always a DOS Window in my taskbar, so I use TrayRun to force my batch to run minimized in the Windows task tray,

start trayrun.exe cmd /c for /L %%i in (1,0,2) do plink -N   -pw password user@my_ssh_server   -D 127.0.0.1:1080

PS.

Plink (PuTTY Link) is a command-line connection tool similar to UNIX ssh. It is mostly used for automated operations, such as making CVS access a repository on a remote server.

TrayRun is a simple application which allows you to run programs in the Windows task tray that weren’t designed that way. This is especially usefull for programs that need to be run on startup but generate a screen, e.g. console applications.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.