Last active
December 30, 2015 18:09
-
-
Save rtomaszewski/7865608 to your computer and use it in GitHub Desktop.
How to automatically deploy your public ssh key to Openstack cloud server
How to create a new cloud server and automatically deploy ssh authorized_keys file with our public ssh key. http://rtomaszewski.blogspot.co.uk/2013/12/how-to-automatically-deploy-your-public.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh-keygen | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/root/.ssh/id_rsa): | |
$ cd .ssh | |
mv id_rsa.pub id_rsa_auxiliary.pub | |
mv id_rsa id_rsa_auxiliary | |
# http://rtomaszewski.blogspot.co.uk/2013/10/home-directory-and-dotfiles-management.html | |
# https://github.com/rtomaszewski/dotfiles/blob/master/.bashrc_rado_aux | |
$ ls -la $MY_AUX_SSH_KEY_PRIV $MY_AUX_SSH_KEY_PUB | |
$ auxnova --image 80fbcb55-b206-41f9-9bc2-2dd7aac6c061 --flavor 2 test-cs | |
+------------------------+--------------------------------------+ | |
| Property | Value | | |
+------------------------+--------------------------------------+ | |
| status | BUILD | | |
| updated | 2013-12-09T00:18:59Z | | |
| OS-EXT-STS:task_state | scheduling | | |
| key_name | None | | |
| image | Ubuntu 12.04 LTS (Precise Pangolin) | | |
| hostId | | | |
| OS-EXT-STS:vm_state | building | | |
| flavor | 512MB Standard Instance | | |
| id | b51663b5-eaa0-4e66-9161-48b28d133d63 | | |
| user_id | 10016865 | | |
| name | test-cs | | |
| adminPass | XXX | | |
| tenant_id | 10016214 | | |
| created | 2013-12-09T00:18:59Z | | |
| OS-DCF:diskConfig | AUTO | | |
| accessIPv4 | | | |
| accessIPv6 | | | |
| progress | 0 | | |
| OS-EXT-STS:power_state | 0 | | |
| config_drive | | | |
| metadata | {} | | |
+------------------------+--------------------------------------+ | |
$ nova show test-cs | grep network | |
$ auxssh IP | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment