Remote Execution Fails with Common Issues

Solution Verified - Updated -

Issue

  • Capsule without remote execution enabled:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried publickey
    
  • Capsule could not resolve hostname:

    Error initializing command: RuntimeError - Could not establish connection 
    to remote host using any available authentication method, tried password, publickey\n\nAuthentication
    method 'password' failed with:\nssh: Could not resolve hostname host01.example.com:
    Name or service not known\r\n\nAuthentication method 'publickey' failed with:\nssh:
    Could not resolve hostname host01.example.com: Name or service not known\r\n
    
  • Capsule was unable to connect to hostname because it is getting a 'No route to host' error:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried password, publickey\n\nAuthentication
      method 'password' failed with:\nssh: connect to host host01.example.com
      port 22: No route to host\r\n\nAuthentication method 'publickey' failed with:\nssh:
      connect to host host01.example.com port 22: No route to host\r\n  
    
  • Capsule was unable to connect to hostname because it is getting a 'Connection timed out' error:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried password, publickey\n\nAuthentication
      method 'password' failed with:\nssh: connect to host host01.example.com
      port 22: Connection timed out\r\n\nAuthentication method 'publickey' failed
      with:\nssh: connect to host host01.example.com port 22: Connection timed  
    
  • Capsule was unable to connect to hostname because it is getting a 'Connection reset by peer' error:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried password, publickey\n\nAuthentication
      method 'password' failed with:\nkex_exchange_identification: read: Connection
      reset by peer\r\n\nAuthentication method 'publickey' failed with:\nkex_exchange_identification:
      read: Connection reset by peer\r\n
    
  • Capsule was unable to connect to hostname because it doesn't have the necessary Capsule pubkey:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried password\n\nAuthentication
      method 'password' failed with:\nroot@host01.example.com: Permission denied
      (publickey,gssapi-keyex,gssapi-with-mic,password,keyboard-interactive).\r\n
    
  • Capsule was unable to connect to hostname because the host key verification failed:

    Error initializing command: RuntimeError - Could not establish connection
      to remote host using any available authentication method, tried password, publickey\n\nAuthentication
      method 'password' failed with:\nExiting, you have requested strict checking.\r\nHost
      key verification failed.\r\n\nAuthentication method 'publickey' failed with:\nExiting,
      you have requested strict checking.\r\nHost key verification failed.\r\n
    

Environment

  • Red Hat Capsule 6
  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content