elktail icon indicating copy to clipboard operation
elktail copied to clipboard

ssh tunnel feature fails to interpret my arguments correctly

Open blysik opened this issue 8 years ago • 1 comments

Maybe I'm doing something wrong here?

Note that I sanitized this output by replace my regular username with "user" and the hostname with "hostname". My remote user is user-adm, while my local machine user is user in this example.

user@user-imac ~ $ elktail --v3 --ssh user-adm@hostname type:squid 
TRACE: elktail.go:435: SSHTunnel remote host: 127.0.0.1:9200
TRACE: sshtunnel.go:102: os/user detected user as &{501 20 user user /Users/user}
TRACE: sshtunnel.go:144: SSH Tunnel: Server - User: user, Host: user-adm, Port: 22
TRACE: sshtunnel.go:162: SSH Tunnel: Local port : 9199, Remote Host: 127.0.0.1, Remote Port: 9200
INFO: elktail.go:442: Starting SSH tunnel 9199:user@user-adm:22 to 127.0.0.1:9200
TRACE: elktail.go:444: Sleeping for a second until tunnel is established...
ERROR: sshtunnel.go:53: SSH Tunnel: dial tcp: lookup user-adm: no such host
user@user-imac ~ $

blysik avatar Feb 20 '17 20:02 blysik

Hi! Thanks for reporting this, it's a bug. The '-' character in your username seems to be breaking the parsing of username@hostname parameter.

knes1 avatar Feb 21 '17 08:02 knes1