Cannot use underscore in server name
nikaro opened this issue · comments
Affected Version
$ mole -version
mole 0.2.0
Expected Behavior
In my ~/.ssh/config
i have a server named ucd_f23
. Mole seems to split the name and use only ucd
as the server name. It should not.
Current Behavior
$ mole -v -local :8000 -remote 192.168.12.49:5001 -server root@ucd_f23
DEBU[0000] cli options options="[local=:8000, remote=192.168.12.49:5001, server=root@ucd, key=, verbose=true, help=false, version=false]"
DEBU[0000] using ssh config file from: /home/nicolas/.ssh/config
DEBU[0000] server: [name=ucd, address=ucd:22, user=root, key=/home/nicolas/.ssh/id_nicolas]
DEBU[0000] tunnel: [local:127.0.0.1:8000, server:ucd:22, remote:192.168.12.49:5001]
INFO[0000] listening on local address local_address="127.0.0.1:8000"
DEBU[0046] new connection address="127.0.0.1:40046"
DEBU[0046] known_hosts file used: /home/nicolas/.ssh/known_hosts
ERRO[0046] server dial error: dial tcp: lookup ucd on 192.168.40.1:53: no such host tunnel="[local:127.0.0.1:8000, server:ucd:22, remote:192.168.12.49:5001]"
Steps to Reproduce
- Have something like this in your
~/.ssh/config
:
Host ucd_f23
Hostname 1.2.3.4
IdentityFile ~/.ssh/id_key
ProxyJump jump.example.net
- Start mole:
mole -v -local :8000 -remote 192.168.12.49:5001 -server root@ucd_f23
Hello, thank you for the fix. However could you make a bugfix release ?
Hello, thank you for the fix. However could you make a bugfix release ?
0.3.0 was just released with this fix: https://github.com/davrodpin/mole/releases/tag/v0.3.0