Created
April 2, 2022 15:03
-
-
Save davisdre/5d129a1fb356abce5b2f6d186418c147 to your computer and use it in GitHub Desktop.
Create a Linode via Linode-CLI in BASH and set to a variable to easily SSH into after creation.
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
# This will create a new linode and will put the public ipv4 into a variable. | |
NEW_LINODE_IPV4=$(linode-cli linodes create --root_pass --no-header --text --format "ipv4") | |
# Now let's ssh into our new linode. | |
ssh root@$NEW_LINODE_IPV4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment