<?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: Ayush Kumar</title>
    <description>The latest articles on DEV Community by Ayush Kumar (@kyu_ayush).</description>
    <link>https://dev.to/kyu_ayush</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%2F2833984%2Fe0b342cf-9788-41bd-a28d-8352cc146275.jpg</url>
      <title>DEV Community: Ayush Kumar</title>
      <link>https://dev.to/kyu_ayush</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kyu_ayush"/>
    <language>en</language>
    <item>
      <title>How to set up SSH keys for Bitbucket and Atlassian Repositories</title>
      <dc:creator>Ayush Kumar</dc:creator>
      <pubDate>Tue, 11 Feb 2025 16:52:16 +0000</pubDate>
      <link>https://dev.to/kyu_ayush/how-to-set-up-ssh-keys-for-bitbucket-and-atlassian-repositories-438i</link>
      <guid>https://dev.to/kyu_ayush/how-to-set-up-ssh-keys-for-bitbucket-and-atlassian-repositories-438i</guid>
      <description>&lt;p&gt;To securely interact with Atlassian tools and repositories, you need to generate and add SSH keys to your account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Ensure Git is Installed&lt;/strong&gt;&lt;br&gt;
Before proceeding, make sure Git is installed on your system. You can verify this by running:&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;If Git is not installed, you can install it using the following commands based on your operating system&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For Ubuntu/Debian:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo apt update
sudo apt install git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;For macOS (using Homebrew):&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;brew install git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;For Windows:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Download the Git installer from &lt;a href="https://git-scm.com" rel="noopener noreferrer"&gt;git-scm.com&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Run the installer and follow the setup instructions, using the default options unless you have specific preferences. &lt;/li&gt;
&lt;li&gt;After installation, open Git Bash from the start menu and verify the installation by running:
&lt;/li&gt;
&lt;/ol&gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 2: Configure your username and email (If not set)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Ensure your system has your Git username and email configured. Run the following commands in your terminal:&lt;br&gt;
&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 "Your Name"
git config --global user.email "your_email@example.com"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace your name and &lt;code&gt;your_email@example.com&lt;/code&gt; with your actual name and email address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Generate an SSH key&lt;/strong&gt;&lt;br&gt;
Open a terminal and run the following command to generate a new SSH key pair:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ssh-keygen -t rsa
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press enter to accept the default file location, and set a passphrase if desired.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: View the SSH public key&lt;/strong&gt;&lt;br&gt;
Once the key is generated, display the public key by running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cat ~/.ssh/id_rsa.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will output your public key, which typically starts with ssh-rsa and ends with your email address.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Add the SSH key to your Atlassian account&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Copy the entire contents of the displayed public key.&lt;/li&gt;
&lt;li&gt;Log in to your Atlassian account.&lt;/li&gt;
&lt;li&gt;Navigate to the SSH Keys section in your account settings.&lt;/li&gt;
&lt;li&gt;Click on the add SSH key and paste the copied key into the provided field.&lt;/li&gt;
&lt;li&gt;Save the key.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To open settings and add your SSH key, &lt;a href="https://bitbucket.org/account/settings/ssh-keys/" rel="noopener noreferrer"&gt;click here&lt;/a&gt;. 👉&lt;/p&gt;

</description>
      <category>ssh</category>
      <category>bitbucket</category>
      <category>webdev</category>
      <category>git</category>
    </item>
  </channel>
</rss>
