automate/010_generate-ssh.sh

8 lines
140 B
Bash
Executable File

#!/usr/bin/env bash
# System keys
ssh-keygen -A
# Root user keys
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa 2>/dev/null <<< y >/dev/null