-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add support for timeout #16
base: master
Are you sure you want to change the base?
Conversation
91d7037
to
a769bbb
Compare
@mrkschan it is not working: [rz:~/golang/src/github.com/crosbymichael/slex]↥ master ± git fetch origin pull/16/head:add-support-for-timeout
[rz:~/golang/src/github.com/crosbymichael/slex]↥ master ± git checkout add-support-for-timeout
Switched to branch 'add-support-for-timeout'
[rz:~/golang/src/github.com/crosbymichael/slex]↥ add-support-for-timeout ± go build
# github.com/crosbymichael/slex
./ssh.go:83: unknown ssh.ClientConfig field 'Timeout' in struct literal |
@zbindenren Please We probably need to adopt a proper dependency management tool :) |
@mrkschan compiling works now, but now I get a panic:
|
Oh, I have a wrong assumption that the option is separated by whitespace ' '. But this is not the case according to
Will need to fix the SSH option parsing logic. @zbindenren could you test with |
@mrkschan we can use vndr for vendor management, its simple and works |
@crosbymichael Not any chance for dep? |
@mrkschan unfortunately it is not working: $ time ./slex -o 'Timeout 1' --user zbindenren -A --host <thehost> ls
ERRO[0021] none of the provided authentication methods can establish SSH session successfully host=<thehost>:22
./slex -o 'Timeout 1' --user zbindenren -A --host <thehost> ls 0.00s user 0.02s system 0% cpu 21.029 total |
@zbindenren please use |
Option format handling is WIP in #18. |
Resolve #15