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.keep_alive: Add option to add the ssh keep alive option #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

b4ldr
Copy link
Member

@b4ldr b4ldr commented Aug 28, 2024

We have an issue where sometimes the ssh connection is killed. this happens due to puppet changing the sshd keep alive settings while beaker is still running.

This patch adds the ability for users to add ssh_keep_alive to the host config to ensure we send keep alive packets every 5 seconds

@kenyon kenyon changed the title ssh.kttp_alive: Add option to add the ssh keep alive option ssh.keep_alive: Add option to add the ssh keep alive option Aug 28, 2024
@kenyon
Copy link
Member

kenyon commented Aug 28, 2024

There's a typo in the commit message: ssh.kttp_alive

We have an issue where sometimes the ssh connection is killed.  this
happens due to puppet changing the sshd keep alive settings while beaker
is still running.

This patch adds the ability for users to add ssh_keep_alive to the host
config to ensure we send keep alive packets every 5 seconds
@b4ldr
Copy link
Member Author

b4ldr commented Aug 29, 2024

There's a typo in the commit message: ssh.kttp_alive

fixed

@@ -53,6 +53,7 @@ def make_vfile(hosts, options = {})
hosts.each do |host|
host.name.tr!('_', '-') # Rewrite Hostname with hyphens instead of underscores to get legal hostname
set_host_default_ip(host)
v_file << " c.ssh.keep_alive = true\n" if host['ssh_keep_alive'] == true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's neat. I'm wondering if we should enable it by default/always?

Copy link
Member Author

@b4ldr b4ldr Aug 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally i think it would be a safe enough change to make this the default but will wait to see if others have a view

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

Successfully merging this pull request may close these issues.

3 participants