Connecting to SSH

There are three different ways to connect to servers with strongDM: using the sdm binary, using it as an alias, and connecting directly with ssh using the mapped port.

Note: To connect to SSH servers using Windows and the CLI, you must use option 3 below: run sdm connect <servername> then connect with your preferred ssh client to localhost:<port>.

Using the sdm binary


You can connect to any accessible server simply by using sdm ssh <servername>. This command will also attempt to complete <servername>—as long as you use a unique substring of a valid server.

$ sdm status
     DATASOURCE NAME           STATUS            PORT      TYPE
     Customer DB RO            not connected     5432      postgres
     Document DB               not connected     27017     mongo

     SSH SERVER                STATUS            PORT      TYPE
     bastion01                 not connected     60672     ssh
     deployment04              not connected     60834     ssh
$ sdm ssh bas
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-1026-aws x86_64)
Last login: Thu Jun 14 16:12:48 2018 from

Making an alias

The easiest way to use SSH with SDM is to add the SDM aliases to your shell profile.

$ sdm ssh alias
# Run this in the command line, or add it to $HOME/.bashrc
alias ssh="/usr/local/bin/sdm ssh wrapped-run"
alias scp="scp -S'/usr/local/bin/sdm' -osdmSCP"

This will not interrupt anything you have defined via straight SSH. It will first check SDM, and if nothing exists, default to your standard path.

Using the mapped port

Just like connecting to databases, you can connect directly to the mapped server ports using ssh.