How to create a new cloud server and automatically deploy ssh authorized_keys file with our public ssh key.
Solution description with demonstration
- Generate a new pub and private key pair that your are going to be using with key authentication for all new cloud servers
- Rename and save your keys so you don't override them (keep the private key secure of course!)
- Create a new cloud server (cs) with your public key saved automatically in authorized_keys file
- Login to cs using your private key