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 connections don't timeout when setting conn_timeout in ssh_config #196

Open
tanayk2610 opened this issue Jan 29, 2021 · 3 comments
Open
Labels
bug Something isn't working

Comments

@tanayk2610
Copy link

I'm using crashd v0.3.2 and SSH connections don't seem to timeout:

time="2021-01-29T13:19:38-08:00" level=debug msg="run: executing command on 192.168.128.3 using ssh: [sudo /home/vmware-system-user/tkc_get_cluster_logs.sh 0]"
time="2021-01-29T13:19:38-08:00" level=debug msg="ssh.run: /usr/bin/ssh -q -o StrictHostKeyChecking=no -i tkc-key -p 22 vmware-system-user@192.168.128.3 \"sudo /home/vmware-system-user/tkc_get_cluster_logs.sh 0\""

Here's the ssh_config for it:

ssh=ssh_config(
	username='vmware-system-user',
	private_key_path=args.sshkey,
	max_retries=1,
	conn_timeout=30,
)

In the source code the conn_timeout does get set to the passed in the argument though:

"conn_timeout": starlark.MakeInt(connTimeout),

If conn_timeout is not passed in, it still should default to 30 but that also doesn't seem to happening:

connTimeout = defaults.connTimeout

@vladimirvivien
Copy link
Contributor

@tanayk2610 thanks for the issue. You are correct, the timeout is not applied and there should be a default. Marking this as a bug since the parameter is advertised, but it's not currently applied.

@vladimirvivien vladimirvivien added the bug Something isn't working label Feb 1, 2021
@MadhavJivrajani
Copy link

Hey, I'd like to take a crack at this 😄

@vladimirvivien
Copy link
Contributor

@MadhavJivrajani Go for it ! 🎉

@vladimirvivien vladimirvivien added this to To do in Crashd Project Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants