fix: use python 3.8+ interface
This commit is contained in:
parent
6af3a487ef
commit
be5ac939c4
2 changed files with 16 additions and 3 deletions
17
README.md
17
README.md
|
|
@ -21,9 +21,9 @@ It can print the current state of your tunnels or display them in an interactive
|
|||
|
||||
`tunnelmon` targets Linux operating systems, and depends on:
|
||||
* `openssh-client`
|
||||
* `python3`
|
||||
* `python` version 3.8 at least.
|
||||
|
||||
You may want to install the recommend pacages also:
|
||||
You may also want to install the recommend packages:
|
||||
* `autossh`
|
||||
|
||||
|
||||
|
|
@ -62,3 +62,16 @@ Keyboard commands:
|
|||
* `N`: Show the network connections related to each tunnel instances.
|
||||
* `Q`: Quit tunnelmon.
|
||||
|
||||
|
||||
## SSH Tunnels in a nutshell
|
||||
|
||||
To open a tunnel to port 1234 of `server` through a `host` reached on port 4567:
|
||||
```sh
|
||||
ssh -N host -L4567:server:1234
|
||||
```
|
||||
You may add `-f` to run ssh in the background.
|
||||
|
||||
Autossh can restart tunnels for you, in case they crash:
|
||||
̏```
|
||||
autossh -f host -L4567:server:1234
|
||||
```
|
||||
|
|
|
|||
|
|
@ -376,7 +376,7 @@ class CursesMonitor:
|
|||
self.display()
|
||||
|
||||
# first update counter
|
||||
self.last_update = time.clock()
|
||||
self.last_update = time.perf_counter()
|
||||
self.last_state = None
|
||||
self.log_ticks = ""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue