Remote execution jobs is failing with error "Net::SSH::ConnectionTimeout" on Red Hat Satellite

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.3
  • Red Hat Satellite Capsule 6.3

Issue

  • Remote execution fails with the below error, seen in the Satellite's Monitor --> Tasks --> failed task web page.
Error initializing command: Net::SSH::ConnectionTimeout -  Net::SSH::ConnectionTimeout
Exit status: EXCEPTION

Resolution

However, as a workaround please follow the below steps:

  • Comment the line ConnectTimeout 0 in file /etc/ssh/ssh_config, /root/.ssh/config or ~foreman-proxy/.ssh/config on Satellite/Capsule system.
  • Restart sshd service

For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues

Root Cause

  • ConnectTimeout 0 option was set in file /etc/ssh/ssh_config, causing the net/ssh Ruby module on Satellite 6.3 to immediately timeout when trying to establish and SSH connection to any host.

Diagnostic Steps

  • Check if there is any ConnectTimeout in the ssh files
# grep -i ConnectTimeout /etc/ssh/ssh_config /root/.ssh/config ~foreman-proxy/.ssh/config
SBR
Product(s)
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.