]> git.corax.cc Git - toolbox-goodies/log
toolbox-goodies
4 years agoinclude/ssh: Add functions to list running tunnels and proxies
Matthias Kruk [Mon, 26 Jul 2021 02:40:33 +0000 (11:40 +0900)]
include/ssh: Add functions to list running tunnels and proxies

The ssh module does not provide any means to figure out what tunnels
and proxies have been established, making it hard to automate ssh
connections.
This commit adds the ssh_tunnel_list() and ssh_proxy_list() functions
which may be used to list the established tunnels and proxies,
respectively.

4 years agoinclude/ssh: Fix invalid function reference
Matthias Kruk [Tue, 20 Jul 2021 01:23:07 +0000 (10:23 +0900)]
include/ssh: Fix invalid function reference

The ssh module makes a call to error() in order to log an error message,
however that function does not exist (anymore).
This commit changes the call to reference log_error() instead.

4 years agoinclude/ssh: Import ssh module from toolbox
Matthias Kruk [Tue, 20 Jul 2021 01:04:02 +0000 (10:04 +0900)]
include/ssh: Import ssh module from toolbox

This commit imports the ssh module that has previously been removed
from the toolbox core package.