Accessing a persistent ssh tunnel
Posted
by
woowaa
on Super User
See other posts from Super User
or by woowaa
Published on 2012-11-30T01:28:44Z
Indexed on
2012/11/30
5:10 UTC
Read the original article
Hit count: 449
How do I pass commands (shell) to a persistent SSH tunnel rather than open a connection for every instance? I have a Python scraper running on a client server which passes URL variables and shell commands to a remote host via a reverse tunnel (forwarded port), so that the URL's are then executed on the host (python > fabric > ssh localhost:12345 'browser open URL'). I could make the reverse tunnel persistent but how do I echo the url/command to the session?
Update - ControlMaster (built into SSH) solves this one.
© Super User or respective owner