Ad Hoc Ports
To create an ad hoc port in the client GUI, click and drag a datasource to the bottom of the strongDM window, where a green bar will appear labeled create new port. Release it, and that datasource will be given its own persistent port under additional ports.
These ports will persist between strongDM restarts. To destroy an ad hoc port, click and drag it to the bottom of the window where a red bar will appear labeled delete port. Release it there, and the ad hoc port will be deleted.
To create an ad hoc port via the SDM CLI, you can add a port number to the
sdm connect command:
$ sdm connect mssql1 1500connect successful$ sdm statusDATASOURCE NAME STATUS PORT TYPEmssql1 not connected 1433 mssqlmssql1 connected 1500 mssql
You can specify any port, with the following exceptions:
- The port must be > 1024
- The port must not be within 5 of the default port for that datasource type. For instance, a Microsoft SQL Server datasource has a default port of 1433. This means that you cannot specify a port between 1428 and 1438 as the custom port.