<?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: Kelly Carvalho</title>
    <description>The latest articles on DEV Community by Kelly Carvalho (@kellycarvalho).</description>
    <link>https://dev.to/kellycarvalho</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%2F597474%2F988c9dc4-1dc9-4bdd-99d8-dc3fb2ed6bc4.jpg</url>
      <title>DEV Community: Kelly Carvalho</title>
      <link>https://dev.to/kellycarvalho</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kellycarvalho"/>
    <language>en</language>
    <item>
      <title>How to configure Git on Ubuntu and add ssh key to github</title>
      <dc:creator>Kelly Carvalho</dc:creator>
      <pubDate>Wed, 16 Feb 2022 12:02:51 +0000</pubDate>
      <link>https://dev.to/kellycarvalho/how-to-configure-git-on-ubuntu-and-adding-ssh-key-to-github-4h5d</link>
      <guid>https://dev.to/kellycarvalho/how-to-configure-git-on-ubuntu-and-adding-ssh-key-to-github-4h5d</guid>
      <description>&lt;p&gt;&lt;strong&gt;About me&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Hello, Everyone. I’m  a back-end developer. I like cats and roller skating, I'm crazy for challenges and I am always looking to learn something really new. I love to write and I intend to continue writing about different subjects here. This is my first post and I'm open to suggestions and if there's anything wrong you can signal. &lt;/p&gt;

&lt;p&gt;Without further introductions let's get to the content.&lt;/p&gt;

&lt;p&gt;It's not cool to needing to login every time that you have to push,actually you can solve it quite easily. You can just add your ssh key to github. Personally I use linux distribution Ubuntu as System Operator. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Ubuntu&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Installing Git and checking if it's working&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Usually the Git is already installed on Ubuntu, but sometimes is necessary to install. You can use the following command to install it&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

~$ sudo apt install git




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;p&gt;&lt;strong&gt;Git&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can make sure it's install by using the following command&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

~$ git


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;If something like this comes up it means Git is already installed&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0rp3a20kqsgh59yxnkk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl0rp3a20kqsgh59yxnkk.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;





&lt;h3&gt;
  
  
  &lt;strong&gt;It's important to configure your username  and email  for  the commits from your user be recognized&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Setting your user and email&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

~$ git config --global user.name "Meu Nome"
~$ git config --global user.email "meuemail@email.com"


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Now you can see your configuration&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

~$ git config --global user.name
Meu Nome
~$ git config --global user.email
meuemail@email.com


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  &lt;strong&gt;Generating ssh keys&lt;/strong&gt;
&lt;/h2&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

~$ ssh-keygen -t ed25519 -C "your_email@example.com"




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;This command in addition to generating the public and private key using Ed25519 algorithm, it will return the path where your keys are, usually the path is /home/userLinux.&lt;/p&gt;

&lt;h1&gt;
  
  
  Warning
&lt;/h1&gt;

&lt;p&gt;You shouldn't show the private key to anyone&lt;/p&gt;

&lt;p&gt;After locating where the .ssh keys were generated, you will copy the content from text file with .pub extension. This is your public key. &lt;/p&gt;

&lt;h3&gt;
  
  
  GitHub
&lt;/h3&gt;

&lt;p&gt;Adding public ssh key to GitHub&lt;/p&gt;

&lt;h6&gt;
  
  
  Go to Settings on your GitHub profile
&lt;/h6&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkxeysp64qdh7yxlqkfnw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkxeysp64qdh7yxlqkfnw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Section SSH and GPG keys
&lt;/h6&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdn1vc6ctked81wf6p85m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdn1vc6ctked81wf6p85m.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Click on Button "new SSH Key"
&lt;/h6&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvlb3fd279xafsswml3ws.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvlb3fd279xafsswml3ws.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can  past your public key on text box and  choose a title and it's  ready! Git will not ask login anymore!&lt;/p&gt;

&lt;p&gt;&lt;br&gt;&lt;br&gt;
if you are starting now I hope this helps.&lt;/p&gt;

&lt;p&gt;Thx 😃 cya...&lt;/p&gt;

</description>
      <category>git</category>
      <category>github</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
