Blog

How to generate SSH key on Mac or Linux
Updated: 06 March 2022

Open Terminal and run

ssh-keygen -t rsa

then run the following to display the key and copy it:

cat /home/lecfy/.ssh/id_rsa.pub for Linux

cat /Users/lecfy/.ssh/id_rsa.pub for Mac

(replace lecfy with your username)