Remote execution jobs is failing with error "Net::SSH::ConnectionTimeout" on Red Hat Satellite
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
- This is a known issue and is tracked under This content is not included.Bug 1565830
However, as a workaround please follow the below steps:
- Comment the line
ConnectTimeout 0in file/etc/ssh/ssh_config,/root/.ssh/configor~foreman-proxy/.ssh/configon Satellite/Capsule system. - Restart
sshdservice
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 0option was set in file/etc/ssh/ssh_config, causing thenet/ssh Ruby moduleon Satellite 6.3 to immediately timeout when trying to establish and SSH connection to any host.
Diagnostic Steps
- Check if there is any
ConnectTimeoutin the ssh files
# grep -i ConnectTimeout /etc/ssh/ssh_config /root/.ssh/config ~foreman-proxy/.ssh/config
SBR
Product(s)
Category
Tags
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.