We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2ba87d commit 7ccb4bbCopy full SHA for 7ccb4bb
README.md
@@ -54,18 +54,13 @@ time.
54
55
SSH tunneling is also supported:
56
57
+```clj
58
(with-ssh-agent []
59
(let [session (session "localhost" :strict-host-key-checking :no)]
- (with-local-tunnel session 8080 80
60
- (with-connection session
61
- (while (connected? session)
62
- (Thread/sleep 100))))))
63
-
64
-or more conveniently:
65
66
- (with-ssh-agent []
67
- (let [session (session "localhost" :strict-host-key-checking :no)]
68
- (ssh-tunnel session 8080 80)))
+ (with-connection session
+ (with-local-port-forward [session 8080 80]
+ (comment do something with port 8080 here)))))
+```
69
70
## Documentation
71
0 commit comments