Created
April 26, 2022 11:22
-
-
Save nth347/84c0800cfa82527e9754ee64f5faa8c2 to your computer and use it in GitHub Desktop.
SSH keygen one liner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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