<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mokhele Katleho </title>
    <description>The latest articles on DEV Community by Mokhele Katleho  (@mokhele).</description>
    <link>https://dev.to/mokhele</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F865545%2F0355d760-cfaa-440b-bc69-efe884de72f2.png</url>
      <title>DEV Community: Mokhele Katleho </title>
      <link>https://dev.to/mokhele</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mokhele"/>
    <language>en</language>
    <item>
      <title>How to setup your Github SSH-Keys in 3 easy steps</title>
      <dc:creator>Mokhele Katleho </dc:creator>
      <pubDate>Tue, 21 Mar 2023 04:11:16 +0000</pubDate>
      <link>https://dev.to/mokhele/how-to-setup-your-github-ssh-keys-in-3-easy-steps-1mho</link>
      <guid>https://dev.to/mokhele/how-to-setup-your-github-ssh-keys-in-3-easy-steps-1mho</guid>
      <description>&lt;p&gt;Are you tired of having to repeatedly input your username and password everytime when you try to access github?or maybe you just want a more secure and convenient way to be authenticated when accessing your github? If your answer is yes then Secure Shell Keys(SSH-Keys) are a solution to this problem. In this blog I will be guiding you through the process of setting up SSH Keys on github &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1 : Check for existing SSH Keys&lt;/strong&gt;&lt;br&gt;
Before you generate your SSH key, you should start by checking if you don't already have an existing key; You can do this by running the following command on your terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;ls&lt;/span&gt; &lt;span class="nt"&gt;-al&lt;/span&gt; ~/.ssh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you have any existing SSH keys this command will list them,if you don't have any existing SSH keys don't worry, just follow along.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2 : Generate a New SSH Key&lt;/strong&gt;&lt;br&gt;
If you don't have an existing SSH key, you can easily generate one by running the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen &lt;span class="nt"&gt;-t&lt;/span&gt; rsa &lt;span class="nt"&gt;-b&lt;/span&gt; 4096 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"your email"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After running this command you will be prompted to enter the file name and the passphrase for the new SSH key, you can just click enter to use the default filename(id_rsa) and the passphrase is optional if you want some extra security.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3 : Add the SSH Key to your github account&lt;/strong&gt;&lt;br&gt;
After your SSH key has been successfully generated, you will now have to add it to your github account. Login to your github account and go to your account settings, then click on the "SSH and GPG Keys" tab; see screenshot below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rZoRzIdM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/byofq6wgvkwv8uhejeej.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rZoRzIdM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/byofq6wgvkwv8uhejeej.jpg" alt="setting up Github SSH keys" width="720" height="287"&gt;&lt;/a&gt;&lt;br&gt;
After that now click the "Add new SSH key" button and give your new SSH key a title, the title can be anything you like. Next copy the key from the "id_rsa.pub" file located in your "~/.ssh" folder and paste it into the "Key" field. The ssh folder was created when you generated your new SSH key and this is where your key is stored. Please note that the 'ssh' folder might be hidden by default,if this is the case for you just simply click on the "show hidden files" checkbox under the views tab on your taskbar:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--N_aC4WKe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vu5zvgku8kavjyhx6xw0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--N_aC4WKe--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vu5zvgku8kavjyhx6xw0.png" alt="setting up Github SSH keys" width="600" height="332"&gt;&lt;/a&gt;&lt;br&gt;
Now finally, if you successfully copied your SSH Key to your github, click the "Add SSH key" button &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
SSH keys provide a secure and convenient way to authenticate your access when using github. By following the steps from this article, you will be able to easily setup your SSH keys.&lt;/p&gt;

</description>
      <category>github</category>
      <category>tutorial</category>
      <category>webdev</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
