From b358735115594a601092d07efef9bb0bd1404548 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 1 Jul 2010 14:48:31 +0000 Subject: [PATCH] store sliver ssh keys in the root /home and rely on the mounting vsys script to expose it --- plugins/sliverauth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.43.0