Environment
Situation
Resolution
*Custom port configured for SSH can be checked in "/etc/ssh/sshd_config" file.
In order to inventory a linux machine which uses non-standard SSH port, the port number has to specified alongwith the hostname or IP address of the machine. Here are the steps to be taken to inventory a Linux machine with non-standard SSH port:
1. Click the Inventory button > Machines or click the Tools menu > Inventory > Machines. The Inventory Machines dialog box is displayed.
2. In Hostname or IP of the machine(s)to inventory, specify the hostname or the IP address of the machines you want to inventory.
3. Right after the hostname or IP address, put a colon (:) followed by the custom port number. It will appear as <Hostname:port#> or <IPaddress:port#>.
For e.g., if the Linux machine to be inventoried is named "TestLinux" and uses port 2200, it will be typed as <TestLinux:2200>
4. Specify credentials for the Linux machine and click Inventory button at the bottom.
Note: The above method to inventory a linux machine with non-standard SSH port can only be used when inventorying a Machine. It cannot be used with other Inventory methods like CSV file, IP Range, Subnet or SNMP.