Commit 68fed3b9 authored by Helga Velroyen's avatar Helga Velroyen

Create .ssh directory if it does not exist yet

This patch extends the SSH handling by creating the .ssh
directory when generating SSH keys if it did not exist
yet. This fixes Issue 1103.
Signed-off-by: default avatarHelga Velroyen <helgav@google.com>
Reviewed-by: default avatarPetr Pudlak <pudlak@google.com>
parent 2e605c0f
......@@ -684,7 +684,7 @@ def InitSSHSetup(error_fn=errors.OpPrereqError, _homedir_fn=None,
"""
priv_key, _, auth_keys = GetUserFiles(constants.SSH_LOGIN_USER,
_homedir_fn=_homedir_fn)
mkdir=True, _homedir_fn=_homedir_fn)
new_priv_key_name = priv_key + _suffix
new_pub_key_name = priv_key + _suffix + ".pub"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment