Skip to content

Instantly share code, notes, and snippets.

@nth347
Created April 26, 2022 11:22
Show Gist options
  • Save nth347/84c0800cfa82527e9754ee64f5faa8c2 to your computer and use it in GitHub Desktop.
Save nth347/84c0800cfa82527e9754ee64f5faa8c2 to your computer and use it in GitHub Desktop.
SSH keygen one liner
echo "y\n" | HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment