Skip to content

Instantly share code, notes, and snippets.

View gabrik's full-sized avatar
🛰️
🦀

Gabriele Baldoni gabrik

🛰️
🦀
View GitHub Profile
@gabrik
gabrik / generate-ssh-key
Last active May 5, 2023 06:53 — forked from hongkongkiwi/generate-ssh-key
Simple one liner to generate an SSH key without a password in the default place with the comment as hostname then print out the public key for copy and paste.
HOSTNAME=`hostname` ssh-keygen -t ecdsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub