Last active
June 24, 2016 21:24
-
-
Save lchi/7549ece5bcafae323d57648c14c09c4b to your computer and use it in GitHub Desktop.
Adding softlayer hosts to ssh config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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