Set different SSH Port for Remote Execution in Red Hat Satellite 6

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.2.9 or later
  • Remote Execution feature

Issue

  • Set alternative or alternate SSH Port for a set of hosts
  • Is it possible to use a different SSH port?

Resolution

  • A parameter can be set through hammer command or webUI which acts globally for all the hosts

    [root@satellite ~]#  hammer settings set --name remote_execution_ssh_port --value 5522
    

    NOTE: Remote Execution setting listed above will affect all hosts. Also 5522 is a random SSH port, change it accordingly.

  • If the requirement is to set for a particular host or a group of hosts, then follow instructions below

    1. From All Hosts page, Edit Host >> Parameters tab >> Under Host parameters >> click Add Parameter >> Name remote_execution_ssh_port Value 5522.

    2. Schedule Remote Job for this Host, which should connect using the value set in Step1.

    3. To change Remote Execution SSH port for a group of hosts, Create/Update a HostGroup >> Parameters tab >> Under Global parameters >> click Add Parameter >> Name remote_execution_ssh_port Value 5522.

    4. When scheduling a Remote Execution Job, modify the Search Query as hostgroup = HostGroupName.

    NOTE: Ensure Hosts are associated with the HostGroup to use a particular port as specified in Step3.

SBR
Product(s)
Components
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.