0.51421.5 MB
unset
strict
core22
ssh tunnel with built in ssh server
ssh tunnel with built in ssh server.
It can be run stand alone as ssh-tunnel and bind on local ssh server. Or it can be used as boilerplate to be added into own snap to enable remote
application debugging without reliance on system ssh server. At which point ssh session runs confined in host snap context.
At install ssh key is generated and stored to configurations:
add this to your remove server to allow auto connection.
By default ssh tunnel and ssh server are disabled:
To configure ssh tunnel, use following configuration (with own values):
To use built in ssh server, use following example:
It can be run stand alone as ssh-tunnel and bind on local ssh server. Or it can be used as boilerplate to be added into own snap to enable remote
application debugging without reliance on system ssh server. At which point ssh session runs confined in host snap context.
At install ssh key is generated and stored to configurations:
$ snap get ondra-snap-ssh-debug ssh-tunnel.local.ssh-pub-keyadd this to your remove server to allow auto connection.
By default ssh tunnel and ssh server are disabled:
To configure ssh tunnel, use following configuration (with own values):
$ snap set ondra-snap-ssh-debug ssh-tunnel='{ "remote": {"target": "162.162.11.1", "forwarding-port": "2020", "remote.ssh-port": "22", "user": "ubuntu" }, "local": { "address": "localhost"}}' To use built in ssh server, use following example:
$ snap set ondra-snap-ssh-debug ssh-tunnel.local.port=2040
$ snap set ondra-snap-ssh-debug ssh-server='{ "enabled": "true", "authorized-keys" : "ssh-rsa AAAA<MY SSH public key>== ondrej.kubik"}'
Update History
0.5 (142)13 Dec 2025, 09:47 UTC
9 Dec 2019, 13:40 UTC
15 Jan 2024, 17:09 UTC
13 Dec 2025, 09:47 UTC