Automate SSH Key Generation and Deployment
I recently pieced together a bash wrapper script to create, add, and delete an ssh key for temporary use in performing remote tasks over ssh. The processes outlined here assume cURL is available, and that the remote service you wish to connect to has API methods for ssh key handling. Automating the process of generating and deleting a local ssh key is the easy part. Here’s one way to create a key:...