P
P
Pavel2016-06-08 08:54:11
SSH
Pavel, 2016-06-08 08:54:11

How to run rdp file after tunnel opened?

Kitty, the tunnel is configured, there is an rdp file, you
need to run it after raising the tunnel.
How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
landergate, 2016-06-08
@landergate

Kitty is not able to open external applications after a connection is established, nor can it confirm the existence of a tunnel by giving some kind of signal.
I would make a script using plink . It will run invisibly, work in the background.
If it returns 0 on startup, then start an RDP connection.
True, you need to figure out how to then nail plink.exe from processes. It might even be better to always leave it in the background.
Several well-known programs for Windows work on this principle (for example, HeidiSQL).
Be careful: the first time you connect, plink will ask for an interactive confirmation of the key fingerprint (y/n). Theoretically, you can hide through -batch.

P
Pavel, 2016-06-08
@pbt39

:test
if проверка порта на открытость = ok goto rdp
else goto test
:rdp 
тут запуск rdp

:test currently pings for 5 seconds

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question