Blame


1 7b682af0 2021-11-21 op # lstun -- lazy ssh tunnel
2 7b682af0 2021-11-21 op
3 7b682af0 2021-11-21 op lstun is a simple utility to lazily (on demand) spawn a ssh tunnel to
4 7b682af0 2021-11-21 op a remote machine and kill it after some time of inactivity.
5 7b682af0 2021-11-21 op
6 5557994e 2021-11-21 op Given its narrow scope, it's probably not useful to anybody but me so
7 5557994e 2021-11-21 op I haven't invested much time in making it easily portable. That said,
8 7b682af0 2021-11-21 op it shouldn't be hard to compile it in non-OpenBSD systems: you have
9 7b682af0 2021-11-21 op just to compile it by hand and (probably) provide an implementation
10 7b682af0 2021-11-21 op for strtonum(3) and getprogname(3).
11 7b682af0 2021-11-21 op
12 7b682af0 2021-11-21 op To compile it just run
13 7b682af0 2021-11-21 op
14 7b682af0 2021-11-21 op make
15 7b682af0 2021-11-21 op
16 7b682af0 2021-11-21 op The only dependency is libevent.
17 7b682af0 2021-11-21 op
18 7b682af0 2021-11-21 op By default it uses `/usr/bin/ssh`, you can change it at compile time
19 7b682af0 2021-11-21 op with `-D SSH_PATH=<whatever>`.
20 7b682af0 2021-11-21 op
21 7b682af0 2021-11-21 op Check out the manpage for the usage.