From: Thierry Parmentelat Date: Thu, 1 Jul 2010 14:48:31 +0000 (+0000) Subject: store sliver ssh keys in the root /home and rely on the mounting vsys script to expose it X-Git-Tag: NodeManager-2.0-14~4 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b358735115594a601092d07efef9bb0bd1404548;p=nodemanager.git store sliver ssh keys in the root /home and rely on the mounting vsys script to expose it --- diff --git a/plugins/sliverauth.py b/plugins/sliverauth.py index 9ff2f38..06c5c22 100644 --- a/plugins/sliverauth.py +++ b/plugins/sliverauth.py @@ -92,7 +92,11 @@ def manage_hmac (plc, sliver): # create the key if needed and returns the key contents def generate_sshkey (sliver): - keyfile="/vservers/%s/home/%s/.ssh/id_rsa"%(sliver['name'],sliver['name']) +# initial version was storing stuff in the sliver directly +# keyfile="/vservers/%s/home/%s/.ssh/id_rsa"%(sliver['name'],sliver['name']) +# we're now storing this in the same place as the authorized_keys, which in turn +# gets mounted to the user's home directory in the sliver + keyfile="/home/%s/.ssh/id_rsa"%(sliver['name'],sliver['name']) pubfile="%s.pub"%keyfile dotssh=os.path.dirname(keyfile) # create dir if needed