Skip to content

Instantly share code, notes, and snippets.

@hugoduncan
Created February 26, 2012 22:58
Show Gist options
  • Save hugoduncan/1919487 to your computer and use it in GitHub Desktop.
Save hugoduncan/1919487 to your computer and use it in GitHub Desktop.
outline for with-ssh-tunnel
(action/def-clj-action post-to-port
[session port]
;; forward port remote port `port` to local port `local-port`
(execute/with-ssh-tunnel session {local-port port}
(let [endpoint (format "http://localhost:%s%s" local-port url-path)]
(comment do something here)
session)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment