-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
is there a way to manipulate the time before using fallback gateway? #101
Comments
Hi @Zhann, thank you for your feedback, Can you give me an (anonymised) example of configuration file ? |
Note that when you are setting the If you want to have "fallback gateways", you need to put the magic "direct" host as the first entry of this field, so assh will try to connect without gateways before trying the rest of the list. Do you find that odd? I may write a note on the README.md if this is not 100% clear as it is for me the feature I'm using the most every days :) example: hosts:
aaa:
gateways:
- bbb
- ccc
- direct
- eee
|
I just released a new version here: https://github.com/moul/advanced-ssh-config/releases/tag/v2.2.0 Can you get the latest version and run these commands: $ assh proxy --dry-run <your-host>
$ assh info For example, here is mine: $ assh proxy --dry-run test-ccc
ERRO[0000] Cannot use gateway '2.3.4.5': dry-run: Execute [ssh 2.3.4.5 -- nc 1.2.3.8 22]
ERRO[0000] Cannot use gateway '3.4.5.6': dry-run: Execute [ssh 3.4.5.6 -- nc 1.2.3.8 22]
ERRO[0000] Failed to use 'direct' connection: dry-run: Golang native TCP connection to '1.2.3.8:22'
ERRO[0000] Cannot use gateway '4.5.6.7': dry-run: Execute [ssh 4.5.6.7 -- nc 1.2.3.8 22]
FATA[0000] Proxy error: No such available gateway $ assh info
Debug mode (client): false
CLI Path: /usr/local/bin/assh
Go version: go1.5.3
OS/Arch: darwin/amd64
RC files:
- ~/.ssh/assh.d/ocs.yml
- ~/.ssh/assh.d/pathwar.yml
- ~/.ssh/assh.d/test.yml
- ~/.ssh/assh.yml
- ~/.ssh/assh.d/esl.yml
- ~/.ssh/assh.d/hosts.yml
- ~/.ssh/assh.d/moul.yml
Statistics:
- 187 hosts
- 0 templates
- 7 included files |
Hi @moul, sorry for not replying earlier. Yes, this fixed my issue! Thank you very much. |
super 👍 |
More a question than an issue ..
Love this tool btw.
Been playing with
ConnectTimeout: 10
but that doesn't seem to work:The text was updated successfully, but these errors were encountered: