Skip to content
Snippets Groups Projects
Commit 8b60173b authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Auto generate SSH key in utilities (refs #20615).

parent e014fcfc
No related branches found
No related tags found
No related merge requests found
......@@ -16,5 +16,7 @@ def setup(interactive=True):
'[ -f ~/.vimrc ] || echo "color ron" > ~/.vimrc',
# Copy bashrc file
'cp "%s/bashrc" "/root/.bashrc"' % dir_path,
# Generate SSH key if not already done
'[ -f /root/.ssh/id_rsa ] || ssh-keygen -b 4096 -t rsa -f /root/.ssh/id_rsa -P ""',
]
utils.run_commands(cmds)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment