Skip to content

Instantly share code, notes, and snippets.

@davisdre
Created April 2, 2022 15:03
Show Gist options
  • Save davisdre/5d129a1fb356abce5b2f6d186418c147 to your computer and use it in GitHub Desktop.
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 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