Skip to content

Increase a connection timeout from proxy to SSH #1760

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

Closed
klizhentas opened this issue Mar 9, 2018 · 3 comments
Closed

Increase a connection timeout from proxy to SSH #1760

klizhentas opened this issue Mar 9, 2018 · 3 comments
Assignees

Comments

@klizhentas
Copy link
Contributor

klizhentas commented Mar 9, 2018

What happened:

One of our users noticed that a server that was a bit busy or something didn’t respond within 10 seconds to the teleport proxy on the first SSH of the day
It’d be nice to increase that timeout to 30 seconds to smooth that sort of thing out

What you expected to happen:

Is it possible to increase the connection timeout setting for the proxy’s connection to the target ssh server?
The default seems to be 10 seconds

How to reproduce it (as minimally and precisely as possible):

Delay the connection response for more than 10 seconds

Environment:

  • Teleport version (use teleport version):
  • Tsh version (use tsh version):
  • OS (e.g. from /etc/os-release):

Browser environment

  • Browser Version (for UI-related issues):
  • Install tools:
  • Others:

Relevant Debug Logs If Applicable

  • tsh --debug
  • teleport --debug
```channel 0: open failed: connect failed: ssh: handshake failed: read tcp x.x.x.x:43564->x.x.x.x:22: i/o timeout```
@klizhentas klizhentas added this to the 2.5.1 "Portland" milestone Mar 9, 2018
@klizhentas
Copy link
Contributor Author

I think it's reasonable to bump timeout to 60 seconds

@james-lawrence
Copy link

more reasonable to provide a way to configure it. maybe pull from SSH config?

@klizhentas
Copy link
Contributor Author

I'd like to keep it simple for now - 60 seconds seems reasonable default, if someone needs anything different we will reconsider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants