Skip to content

Instantly share code, notes, and snippets.

@valentinbud
Created September 20, 2013 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save valentinbud/6638247 to your computer and use it in GitHub Desktop.
Save valentinbud/6638247 to your computer and use it in GitHub Desktop.
import os
def get_ssh_public_key():
pub_key = ''
with open("/var/lib/one/.ssh/id_rsa.pub", 'rb') as infile:
for line in infile:
pub_key += line
return {'oneadmin_public_key' : pub_key}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment