Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to set ssh key during rebuild?

I am using pyrax to automate rebuild a server and set the ssh key during the rebuild process. The key does not get set.

I created my key like so:

with open(os.path.expanduser("~/.ssh/")) as keyfile:

I kick off the rebuild like this:

staging_server.rebuild(ubu_image, password=os.environ['RAX_PASS'], key_name="my_key")

The server gets build but the key does not get set. What do I need to do to pass the key to my linux (ubuntu 12.04) server.