Skip to content

Instantly share code, notes, and snippets.

@ChrisMacNaughton
Created January 14, 2016 20:38
pubkey = b64decode(env_conf['environment-pubkey']).decode('utf-8')
privkey = b64decode(env_conf['environment-privkey']).decode('utf-8')
with open('{}/.juju/ssh/juju_id_rsa'.format(HOME), 'w+') as e_file:
e_file.write(pubkey)
with open('{}/.juju/ssh/juju_id_rsa.pub'.format(HOME), 'w+') as e_file:
e_file.write(privkey)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment