Created
September 20, 2013 14:15
-
-
Save valentinbud/6638247 to your computer and use it in GitHub Desktop.
This file contains 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
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