<?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: Ravi Shanker Kushwaha</title>
    <description>The latest articles on DEV Community by Ravi Shanker Kushwaha (@rsk_2002).</description>
    <link>https://dev.to/rsk_2002</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%2F841311%2F09caa3a2-8c40-4e1a-916f-6ed4f803422b.png</url>
      <title>DEV Community: Ravi Shanker Kushwaha</title>
      <link>https://dev.to/rsk_2002</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rsk_2002"/>
    <language>en</language>
    <item>
      <title>🚀 How to Deploy a Django App on Render.com — Step-by-Step Guide</title>
      <dc:creator>Ravi Shanker Kushwaha</dc:creator>
      <pubDate>Sat, 26 Apr 2025 03:43:33 +0000</pubDate>
      <link>https://dev.to/rsk_2002/how-to-deploy-a-django-app-on-rendercom-step-by-step-guide-n5f</link>
      <guid>https://dev.to/rsk_2002/how-to-deploy-a-django-app-on-rendercom-step-by-step-guide-n5f</guid>
      <description>&lt;p&gt;Deploying your Django app to &lt;strong&gt;Render.com&lt;/strong&gt; is fast and easy if you follow the right steps. In this blog, I’ll walk you through setting up a &lt;strong&gt;production-ready Django project on Render&lt;/strong&gt;, including database configuration, static files, and more.&lt;/p&gt;




&lt;h3&gt;
  
  
  🧱 1. Prepare Your Django Project
&lt;/h3&gt;

&lt;p&gt;Start with a Django project that runs locally.&lt;/p&gt;

&lt;h4&gt;
  
  
  ✅ Install Required Packages
&lt;/h4&gt;

&lt;p&gt;Make sure you have the following in &lt;code&gt;requirements.txt&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gunicorn
dj-database-url
psycopg2-binary
whitenoise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install them if needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;gunicorn dj-database-url psycopg2-binary whitenoise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  ⚙️ 2. Update Django Settings for Production
&lt;/h3&gt;

&lt;p&gt;Edit your &lt;code&gt;settings.py&lt;/code&gt;:&lt;/p&gt;

&lt;h4&gt;
  
  
  🔐 Allowed Hosts
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;ALLOWED_HOSTS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;your-app-name.onrender.com&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  🧾 Use this &lt;code&gt;.env&lt;/code&gt; file (You can add your other variables)
&lt;/h4&gt;

&lt;p&gt;You can use a library like &lt;code&gt;django-environ&lt;/code&gt; to access your variables in &lt;code&gt;settings.py&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;DEBUG=0
SECRET_KEY=your-complex-secret-key
ALLOWED_HOSTS=localhost,127.0.0.1,your-app-name.onrender.com
DATABASE_URL=postgres://db_user:password@hostname:PORT/db_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  🗄️ Database (PostgreSQL)
&lt;/h4&gt;

&lt;p&gt;Replace the default SQLite config:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;dj_database_url&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;

&lt;span class="n"&gt;DATABASES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;default&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;dj_database_url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;config&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;environ&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;DATABASE_URL&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="n"&gt;conn_max_age&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;600&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;ssl_require&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;True&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Render will inject the &lt;code&gt;DATABASE_URL&lt;/code&gt; environment variable when you connect your PostgreSQL service.&lt;/p&gt;

&lt;h4&gt;
  
  
  🧾 Static Files
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;STATIC_URL&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;/static/&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
&lt;span class="n"&gt;STATIC_ROOT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;BASE_DIR&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;staticfiles&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;STATICFILES_STORAGE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;whitenoise.storage.CompressedManifestStaticFilesStorage&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;

&lt;span class="n"&gt;MIDDLEWARE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;whitenoise.middleware.WhiteNoiseMiddleware&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="c1"&gt;# ... existing middleware
&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  📦 3. Add a &lt;code&gt;Procfile&lt;/code&gt; in the Root Directory
&lt;/h3&gt;

&lt;p&gt;Render uses this to know how to run your app:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;web: gunicorn your_project_name.wsgi
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;your_project_name&lt;/code&gt; with your actual Django project folder name.&lt;/p&gt;




&lt;h3&gt;
  
  
  🗃️ 4. Set Up a PostgreSQL Database on Render
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Go to Render dashboard → &lt;strong&gt;Databases&lt;/strong&gt; → New PostgreSQL
&lt;/li&gt;
&lt;li&gt;Copy the generated &lt;code&gt;DATABASE_URL&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Go to your Web Service → &lt;strong&gt;Environment&lt;/strong&gt; → Add:

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;DATABASE_URL&lt;/code&gt; = &lt;code&gt;&amp;lt;paste_here&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Or you can directly upload your &lt;code&gt;.env&lt;/code&gt; file&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  ⚙️ 5. Set Up Static Files and Migrations
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Option A: Use &lt;code&gt;render.yaml&lt;/code&gt;
&lt;/h4&gt;

&lt;p&gt;Create a &lt;code&gt;render.yaml&lt;/code&gt; file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;services&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;web&lt;/span&gt;
    &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;your-app-name&lt;/span&gt;
    &lt;span class="na"&gt;env&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;python&lt;/span&gt;
    &lt;span class="na"&gt;buildCommand&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
      &lt;span class="s"&gt;pip install -r requirements.txt&lt;/span&gt;
      &lt;span class="s"&gt;python manage.py collectstatic --noinput&lt;/span&gt;
      &lt;span class="s"&gt;python manage.py migrate&lt;/span&gt;
    &lt;span class="na"&gt;startCommand&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gunicorn your_project_name.wsgi&lt;/span&gt;
    &lt;span class="na"&gt;envVars&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;DJANGO_SETTINGS_MODULE&lt;/span&gt;
        &lt;span class="na"&gt;value&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;your_project_name.settings&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Push this to your GitHub repo.&lt;/p&gt;

&lt;h4&gt;
  
  
  Option B: Manually Run Migrations and Collectstatic
&lt;/h4&gt;

&lt;p&gt;Use the &lt;strong&gt;Shell&lt;/strong&gt; in Render’s dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python manage.py migrate
python manage.py collectstatic &lt;span class="nt"&gt;--noinput&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  ✅ 6. Final Touches
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Make sure &lt;code&gt;DEBUG = False&lt;/code&gt; in production.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;SECRET_KEY&lt;/code&gt; from an environment variable.&lt;/li&gt;
&lt;li&gt;If you use media files (uploads), you’ll need S3 or similar.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  🏁 You're Live!
&lt;/h3&gt;

&lt;p&gt;After all these steps, your Django app should be live at:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://your-app-name.onrender.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the admin panel has no styles — don’t worry, just ensure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python manage.py collectstatic &lt;span class="nt"&gt;--noinput&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;...and it’ll work like a charm 🚀&lt;/p&gt;




&lt;p&gt;💬 Feel free to drop a comment if you face any issues — happy to help!&lt;/p&gt;

</description>
      <category>deployment</category>
      <category>django</category>
    </item>
    <item>
      <title>SSH key setup</title>
      <dc:creator>Ravi Shanker Kushwaha</dc:creator>
      <pubDate>Sun, 20 Apr 2025 12:12:40 +0000</pubDate>
      <link>https://dev.to/rsk_2002/ssh-key-setup-1c6</link>
      <guid>https://dev.to/rsk_2002/ssh-key-setup-1c6</guid>
      <description>&lt;p&gt;Setting up an SSH key and adding it to your GitHub account is a great way to securely connect to GitHub without needing to enter your username and password every time. Here's a step-by-step guide:&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 1: Check for Existing SSH Keys&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Before generating a new SSH key, check if you already have one:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open a terminal (on macOS/Linux) or Git Bash (on Windows).&lt;/li&gt;
&lt;li&gt;Run the following command to check for existing SSH keys:
&lt;/li&gt;
&lt;/ol&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;Look for files like &lt;code&gt;id_rsa.pub&lt;/code&gt;, &lt;code&gt;id_ecdsa.pub&lt;/code&gt;, or &lt;code&gt;id_ed25519.pub&lt;/code&gt;. These are your public SSH keys.&lt;/p&gt;

&lt;p&gt;If you don't have any, proceed to the next step.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 2: Generate a New SSH Key&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Run the following command to generate a new SSH key:
&lt;/li&gt;
&lt;/ol&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; ed25519 &lt;span class="nt"&gt;-C&lt;/span&gt; &lt;span class="s2"&gt;"your_email@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;If you're using an older system that doesn't support &lt;code&gt;ed25519&lt;/code&gt;, use:&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@example.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;p&gt;When prompted to "Enter a file in which to save the key," press &lt;code&gt;Enter&lt;/code&gt; to accept the default location.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You'll be asked to enter a passphrase. This is optional but recommended for added security.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 3: Add the SSH Key to the SSH Agent&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Start the SSH agent in the background:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;eval&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ssh-agent &lt;span class="nt"&gt;-s&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add your SSH private key to the SSH agent:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   ssh-add ~/.ssh/id_ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you used a different name for your key, replace &lt;code&gt;id_ed25519&lt;/code&gt; with the correct filename.&lt;/p&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 4: Copy the SSH Key to Your Clipboard&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Display your SSH public key:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   &lt;span class="nb"&gt;cat&lt;/span&gt; ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you used a different name for your key, replace &lt;code&gt;id_ed25519.pub&lt;/code&gt; with the correct filename.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Copy the output to your clipboard. On macOS, you can use:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   pbcopy &amp;lt; ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Linux, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   xclip &lt;span class="nt"&gt;-selection&lt;/span&gt; clipboard &amp;lt; ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On Windows (Git Bash), use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   clip &amp;lt; ~/.ssh/id_ed25519.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;strong&gt;Step 5: Add the SSH Key to Your GitHub Account&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Go to &lt;a href="https://github.com" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and log in to your account.&lt;/li&gt;
&lt;li&gt;Click on your profile picture in the top-right corner and select &lt;strong&gt;Settings&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the left sidebar, click &lt;strong&gt;SSH and GPG keys&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Click the &lt;strong&gt;New SSH key&lt;/strong&gt; button.&lt;/li&gt;
&lt;li&gt;Give your key a title (e.g., "My Laptop").&lt;/li&gt;
&lt;li&gt;Paste the SSH key you copied earlier into the "Key" field.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Add SSH key&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;




&lt;h3&gt;
  
  
  &lt;strong&gt;Step 6: Test Your SSH Connection&lt;/strong&gt;
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Run the following command to test your SSH connection to GitHub:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;   ssh &lt;span class="nt"&gt;-T&lt;/span&gt; git@github.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;If everything is set up correctly, you'll see a message like:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   Hi username! You've successfully authenticated, but GitHub does not provide shell access.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  &lt;strong&gt;Step 7: Use SSH for Git Operations&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Now, when you clone a repository, use the SSH URL instead of HTTPS. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone git@github.com:username/repository.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For existing repositories, you can update the remote URL to use SSH:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote set-url origin git@github.com:username/repository.git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;That's it! You've successfully set up an SSH key and added it to your GitHub account. 🎉&lt;/p&gt;

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