[sshutil] Add a total timeout to SSH client creation

ssh.Dial can hang during authentication, the 'timeout' being set in the config only applying to establishment of the initial connection. This function is effectively ssh.Dial with the ability to set a deadline on the underlying connection.

See https://github.com/golang/go/issues/21941 for more details on the hang.

Change-Id: Ie5b51dad23ac44bed5f98c322a5da8c06cd93f45
1 file changed
tree: f6d906e355ea43911ad0f9cb82e2a101d4049304
  1. artifacts/
  2. bloaty/
  3. botanist/
  4. breakpad/
  5. build/
  6. buildbucket/
  7. cache/
  8. cmd/
  9. color/
  10. command/
  11. digest/
  12. elflib/
  13. gcs/
  14. gndoc/
  15. isatty/
  16. logger/
  17. mdns/
  18. memory/
  19. netboot/
  20. netutil/
  21. ninjalog/
  22. qemu/
  23. resultstore/
  24. retry/
  25. runner/
  26. runtests/
  27. secrets/
  28. serial/
  29. sshutil/
  30. symbolize/
  31. tap/
  32. tarutil/
  33. telnet/
  34. testrunner/
  35. testsharder/
  36. tftp/
  37. .gitignore
  38. go.mod
  39. go.sum
  40. LICENSE
  41. manifest
  42. PATENTS
  43. README.md
README.md

tools

This repo contains tools used in Fuchsia build and development.

Go packages from here are automatically built and uploaded to CIPD and Google Storage by bots using the tools recipe. To add a tool to the build:

  • Edit the bot config.
  • Find the builder_mixins section with name: "tools".
  • Edit the JSON in properties_j to add a string to the packages list:
"fuchsia.googlesource.com/tools/cmd/your-new-tool"