<?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: Ibrahim Adedeji</title>
    <description>The latest articles on DEV Community by Ibrahim Adedeji (@adedejiibrahim7).</description>
    <link>https://dev.to/adedejiibrahim7</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F626140%2Fa00ac566-189b-47a3-92ca-08d32bb6c8bb.jpeg</url>
      <title>DEV Community: Ibrahim Adedeji</title>
      <link>https://dev.to/adedejiibrahim7</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adedejiibrahim7"/>
    <language>en</language>
    <item>
      <title>How to Connect to Github Repository from Cpanel Terminal (without password authentication)</title>
      <dc:creator>Ibrahim Adedeji</dc:creator>
      <pubDate>Mon, 23 Aug 2021 00:54:58 +0000</pubDate>
      <link>https://dev.to/adedejiibrahim7/how-to-connect-to-github-repository-from-cpanel-terminal-without-password-authentication-55k4</link>
      <guid>https://dev.to/adedejiibrahim7/how-to-connect-to-github-repository-from-cpanel-terminal-without-password-authentication-55k4</guid>
      <description>&lt;p&gt;Normally, you could simply log on to your website’s cpanel, open the terminal, cd to your project folder, type &lt;code&gt;git pull&lt;/code&gt;, enter your github username and password on prompt and have the latest changes to your project pulled. Similar process if you’re cloning a repository to your hosting account for the first time. However, since 13th August 2021, github has stopped allowing username/password authentication via ssh. You’re likely to see a message similar to the one below:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GFUQv0NU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2ix06jlmcsae9hoydn0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GFUQv0NU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2ix06jlmcsae9hoydn0.png" alt="a1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Well, this article intends to simply show how to do that.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On your cpanel dashboard, find “SSH Access” on the “Security Pane”, click on it&lt;/li&gt;
&lt;li&gt;Click on the “Manage SSH Keys” Button&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H8QjIQNo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o7wxa5utnuzuldbf5yuf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H8QjIQNo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o7wxa5utnuzuldbf5yuf.png" alt="a2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Next, it should take you to a page where you’d see a list of ssh keys for your hosting account. One table lists the public key(s) and the second one lists the “Private Keys”. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--YPbe2ud4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nu005jbsoalqqttkn4ov.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--YPbe2ud4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/nu005jbsoalqqttkn4ov.png" alt="a3"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If there are existing keys on your account, you should see them listed as above. If not, click on the “Generate a new key” button at the top of the page. The id_rsa named key is one you’d probably find existing already. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On the Public Keys Table, click “Manage” for any of the listed public keys, the “id_rsa” for example&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--u-ma4ILw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cnou1ucc8dy80s9api5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--u-ma4ILw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8cnou1ucc8dy80s9api5.png" alt="a4"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If the next page is similar to the one above, there’s nothing else to do here, simply click on “Go back”. If the page however shows that the key is not authorized, click on “Authorize” to authorize the public key.&lt;/p&gt;

&lt;p&gt;Next, you have to add this key to your github account. The steps are highlighted below:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On the SSH Keys page, click “View/Download” for the desired and authorised public key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--uZtRh68s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lwop8fplmkku2c6rdbv9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--uZtRh68s--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lwop8fplmkku2c6rdbv9.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--z8Go8T1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q91iw5e478bivd3tlje3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--z8Go8T1p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q91iw5e478bivd3tlje3.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Copy the content of the box&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to github&lt;/li&gt;
&lt;li&gt;Click on your profile picture at the top right corner of the page, on the nave bar and click on “Settings”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6-BU4ors--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0kykvqcd6dfrjnuix8b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6-BU4ors--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i0kykvqcd6dfrjnuix8b.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Go to “SSH and GPG Keys” on the left pane&lt;/li&gt;
&lt;li&gt;Click on “New ssh key”&lt;/li&gt;
&lt;li&gt;Enter a descriptive title in the “Title” field&lt;/li&gt;
&lt;li&gt;Paste content of the public key you copied earlier in to the “Key” text box&lt;/li&gt;
&lt;li&gt;Click on “Add SSH Keys”&lt;/li&gt;
&lt;li&gt;Next, open your cpanel terminal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To test it worked, type &lt;code&gt;ssh -T git@github.com&lt;/code&gt;&lt;br&gt;
If you got a message similar to &lt;code&gt;Hi &amp;lt;github username&amp;gt;! You’ve successfully authenticated..&lt;/code&gt;, congratulations&lt;br&gt;
Now, you can cd into the desired folder, type &lt;code&gt;git pull git@github.com:your_username/your_repo.git&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This summarises the steps needed. I do hope it helps&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>ssh</category>
      <category>cpanel</category>
    </item>
  </channel>
</rss>
