cli icon indicating copy to clipboard operation
cli copied to clipboard

Feature request: define ssh-keys when rebuild a server

Open tkoeppen opened this issue 1 year ago • 2 comments

When rebuilding a server via https://docs.hetzner.cloud/#server-actions-rebuild-a-server-from-an-image it should be possible to assign ssh-keys via their ids, similar like in create server:

"ssh_keys": [ "my-ssh-key" ],

The only 2 "workarounds" today are,

  1. delete and re-create a server or
  2. delete the old ssh-keys assigned by Hetzner create server and manual replace afterwords with custom tooling.

tkoeppen avatar Jan 02 '24 16:01 tkoeppen

Thanks for your suggestion! I forwarded it to the corresponding team.

phm07 avatar Jan 03 '24 11:01 phm07

This issue has been marked as stale because it has not had recent activity. The bot will close the issue if no further action occurs.

github-actions[bot] avatar Apr 02 '24 12:04 github-actions[bot]

Since we have to wait for the API to implement this feature, I will close this issue as not planned for now. Once the API supports it, we will add it to the CLI.

phm07 avatar Jul 11 '24 10:07 phm07