HOWTO: Inventory a Linux machine using non-standard SSH port

  • 7005706
  • 08-Apr-2010
  • 26-Apr-2012


PlateSpin Recon


This article discusses how to inventory a Linux machine which is configured to use non-standard SSH port.


Linux platform uses SSH (Secure Shell) protocol to exchange data over a secure channel. By default, it is configured to use network port 22. However, SSH can be configured to use a non-standard network port.

*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.