Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh tunnel feature fails to interpret my arguments correctly #20

Open
blysik opened this issue Feb 20, 2017 · 1 comment
Open

ssh tunnel feature fails to interpret my arguments correctly #20

blysik opened this issue Feb 20, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@blysik
Copy link

blysik commented Feb 20, 2017

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 ~ $
@knes1
Copy link
Owner

knes1 commented Feb 21, 2017

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 knes1 added the bug label Feb 21, 2017
@knes1 knes1 added this to the v0.1.8 milestone Feb 21, 2017
@knes1 knes1 self-assigned this Feb 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants