one liner make ssh key

By June 6, 2019Linux

Create a ssh key with a simple one liner.

HOSTNAME=`hostname` ssh-keygen -t rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub

Leave a Reply