0

Is there any way to create a dependence between two sessions in PuTTY? I would like to have a session ("session-client") automatically call another session ("session-tunnel") before opening the connection. Currently, the two connections work as intended on their own (i.e., if I first open "session-tunnel" and then open "session-client"), but I would like some mechanism for calling only "session-client" and automatically having "session-tunnel" open first.

I have read up on the proxy function, but can't seem to find any way to use "session-tunnel" in this role. This is almost what I want, but I don't want it to reroute to standard in/out; I just want it to run the proxy command before opening a regular ssh session.

The purpose of opening the connection this way is that I want to run a plain ssh-tunnel (not vpn) with passwordless ssh (authorized-keys only) with different user names on the target of "session-client" and "session-tunnel". I would like to be able to access this compound connection through a single PuTTY session handle so I can use that session handle in Tortoise SVN.

My sessions are configured with different user names for the tunnel and for the svn server, along with different keyfiles. A screenshot of the relevant screens follows (note port numbers and IP addresses have been changed.)

Screenshots of working tunnel settings and failing proxy settings

KDN
  • 298

1 Answers1

0

In PuTTY, you can use plink for "local proxy command". This way, you can implement an SSH tunnel.

For details, see OpenSSH ProxyCommand equivalent in PuTTY.

You can then save this proxy configuration as PuTTY stored session.


From "but I don't want it to reroute to standard in/out", it bit sounds, like you are aware of this option and you do not want it. But I do not understand why.