Open Ramnikov opened 3 years ago
To solve the issue we need to update the ssh configuration. On the Node that Ansible run we need to create a config file
touch ~/.ssh/config
In the config file add following Entry:
Host * TCPKeepAlive yes ServerAliveInterval 120 ServerAliveCountMax 5
Aftre the file was edited run the ssh restrat command:
systemctl restart ssh
When executing the long-running command like DB2 and InfoSphere installation ssh connection is breaking. I have tried to add to ansible.cfg following line:
ssh_args = -o ServerAliveInterval=50
Unfortunately, it is not resolving the issue. This happens on RHEL 7 zLinux environment.
Did you have this issue?