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

How to specify Hetzner Cloud ssh key #135

Open
eduardosm opened this issue May 2, 2023 · 1 comment
Open

How to specify Hetzner Cloud ssh key #135

eduardosm opened this issue May 2, 2023 · 1 comment

Comments

@eduardosm
Copy link

Documentation says that DRONE_HETZNERCLOUD_SSHKEY must be an integer. How does such integer represent an SSH key?
I already added the public key to Hetzner, but how do I provide the private key to the autoscaler and how does an SSH key relate to a simple integer?

@cz3k
Copy link

cz3k commented Aug 28, 2023

The integer value represents the ID of the SSH key. You could use following curl command to retrieve the IDs of your Hetzner SSH keys:

curl -H "Authorization: Bearer $HETZNER_API_TOKEN" 'https://api.hetzner.cloud/v1/ssh_keys'

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

2 participants