Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --pub-key= and --identity to gscloud-server-create #126

Open
bkircher opened this issue Apr 9, 2021 · 0 comments
Open

Add --pub-key= and --identity to gscloud-server-create #126

bkircher opened this issue Apr 9, 2021 · 0 comments

Comments

@bkircher
Copy link
Contributor

bkircher commented Apr 9, 2021

gscloud-server-create creates a storage for you by default, --with-template allows you to select the corresponding template. The password is auto-generated for you.

Example:

$ gscloud server create \
   --name centos8 \
   --cores=1 --mem=1 \
   --with-template="CentOS 8" \
   --hostname centos8

Add three new flags to gscloud-server-create:

Each of those adds an SSH public key to the new root storage's authorized_keys file.

  • --pub-key= takes a string argument as public SS key, uploads as new SSH key object, automatically derives a reasonable object name for it
  • --identity= same thing, just accepts a path to a SSH key file or identity much as ssh(1)
  • ssk-key=<id> uses an existing SSH key object already uploaded to gridscale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant