Skip to content

Instantly share code, notes, and snippets.

View nbarsch's full-sized avatar

Neal Barsch nbarsch

View GitHub Profile
@hongkongkiwi
hongkongkiwi / generate-ssh-key
Last active September 20, 2024 16:01
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 rsa -C "$HOSTNAME" -f "$HOME/.ssh/id_rsa" -P "" && cat ~/.ssh/id_rsa.pub