##// END OF EJS Templates
ssh: always expand the path for the generated authorized_keys file....
marcink -
r2211:1517e3b2 default
parent child Browse files
Show More
@@ -50,6 +50,9 b' def get_all_active_keys():'
50 def _generate_ssh_authorized_keys_file(
50 def _generate_ssh_authorized_keys_file(
51 authorized_keys_file_path, ssh_wrapper_cmd, allow_shell, ssh_opts, debug):
51 authorized_keys_file_path, ssh_wrapper_cmd, allow_shell, ssh_opts, debug):
52
52
53 authorized_keys_file_path = os.path.abspath(
54 os.path.expanduser(authorized_keys_file_path))
55
53 import rhodecode
56 import rhodecode
54 all_active_keys = get_all_active_keys()
57 all_active_keys = get_all_active_keys()
55
58
@@ -59,6 +62,7 b' def _generate_ssh_authorized_keys_file('
59 ssh_wrapper_cmd = ssh_wrapper_cmd + ' --debug'
62 ssh_wrapper_cmd = ssh_wrapper_cmd + ' --debug'
60
63
61 if not os.path.isfile(authorized_keys_file_path):
64 if not os.path.isfile(authorized_keys_file_path):
65 log.debug('Creating file at %s', authorized_keys_file_path)
62 with open(authorized_keys_file_path, 'w'):
66 with open(authorized_keys_file_path, 'w'):
63 pass
67 pass
64
68
General Comments 0
You need to be logged in to leave comments. Login now