Created
August 13, 2018 19:44
-
-
Save neowinx/313886659db470894415bca7bdeedca6 to your computer and use it in GitHub Desktop.
Convenient bash script to access linodes with linode-cli
This file contains hidden or 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
#!/bin/bash | |
echo "press Control+C to exit anytime..." | |
echo "Select a linode to enter:" | |
select opt in $( linode-cli linodes list --text --no-headers | awk '{print $2}' ); do | |
ssh root@`linode-cli linodes list --no-headers --text --label $opt | awk '{print $7}'` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment