Skip to content

Instantly share code, notes, and snippets.

@neowinx
Created August 13, 2018 19:44
Show Gist options
  • Save neowinx/313886659db470894415bca7bdeedca6 to your computer and use it in GitHub Desktop.
Save neowinx/313886659db470894415bca7bdeedca6 to your computer and use it in GitHub Desktop.
Convenient bash script to access linodes with linode-cli
#!/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