Skip to content

Instantly share code, notes, and snippets.

@lchi
Last active June 24, 2016 21:24
Show Gist options
  • Save lchi/7549ece5bcafae323d57648c14c09c4b to your computer and use it in GitHub Desktop.
Save lchi/7549ece5bcafae323d57648c14c09c4b to your computer and use it in GitHub Desktop.
Adding softlayer hosts to ssh config
slcli server list | awk '{ print "Host " $2 }
{print " HostName " $3}' >> ~/.ssh/config
slcli virtual list | awk '{ print "Host " $2 }
{print " HostName " $3}' >> ~/.ssh/config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment