How to set ssh key during rebuild?

asked 2013-10-11 20:48:31 -0600

trewq gravatar image

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.

edit retag flag offensive close merge delete