In a next step configure it like that: Host This should open/create your ssh config in a text editor. Go back to your terminal: nano ~/.ssh/config Let’s force your machine to use proper key for Github SSH connection. Type name of your key (something like Work MacBook) and paste contents of your public key. Please login to your account and drop menu using your avatar in the top right corner then click Settings. You should get something like: ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUp lot of mumbo jumbo C1yc2EAAAABIwAAĬopy this starting from ssh-rsa until final space. Now, go to your keys directory: cd ~/.ssh/Īnd show. You can press enter or change it according to your preferences (I’ve typed github for the sake of this tutorial). This command will ask your for location & name for your key file. If you don’t have any SSH key please run in your terminal: ssh-keygen ![]() ![]() In this “cut to the chase” tutorial I’ll show you how to clone Github repo using ssh on Mac OS or Linux (so that you won’t need to use password).
0 Comments
Leave a Reply. |