Skip to content

Instantly share code, notes, and snippets.

@chouzar
Created March 21, 2019 07:05
Show Gist options
  • Select an option

  • Save chouzar/469b38884541994cf4b7a39770142028 to your computer and use it in GitHub Desktop.

Select an option

Save chouzar/469b38884541994cf4b7a39770142028 to your computer and use it in GitHub Desktop.

Generate ssh key pair:

ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

To copy to clipboard you might use xclip:

> sudo apt-get install xclip
> xclip -sel clip < ~/.ssh/id_rsa.pub

Remember to add read permissions to ~/.ssh directory

chmod 644 ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment