bodHOST
  • Web Hosting

    Web Hosting

    cPanel Web Hosting

    Linux Shared Hosting

    Affordable hosting solution that offers features such as cPanel, multiple PHP versions.

    Windows Hosting

    Windows Shared Hosting

    Reliable hosting that offers Plesk control panel, multiple ASP.NET & PHP versions.

    WordPress Hosting

    WordPress Hosting

    Designed to cater specifically to the needs of WordPress websites with automatic updates, & backup options.

    Linux Reseller Hosting

    Linux Reseller Hosting

    Lets you sell hosting services to clients using a Linux server with advanced features and 24/7 support.

    Windows Reseller Hosting

    Windows Reseller Hosting

    Lets you sell hosting services to clients using a Windows-based server.

  • Web Servers

    Web Servers

    VPS Hosting

    Self-managed VPS Hosting

    Offers VPS servers with full root access, choice of OS & customizable configurations

    Linux VPS Hosting

    Linux VPS Hosting

    Provides VPS servers with SSD storage, free backups and 24/7 support.

    Windows VPS Hosting

    Windows VPS Hosting

    Delivers VPS servers with Windows OS, choice of configurations and 24/7 support.

    Cloud Servers

    Cloud Hosting

    Offers scalable hosting with multiple data centers, load balancing and automatic failover.

    Dedicated Servers

    Dedicated Servers

    Offers secure hosting with a choice of OS, DDoS protection, and 24/7 technical support.

  • Domains

    Domains

    Register a Domain

    Domain Name Search

    Find the perfect domain name for your website, Enjoy cheap pricing & wide range of TLDs.

    Register a Domain

    Domain Transfer

    Start by selecting a distinctive domain name & building the perfect website identity.

    Domain ID Protect

    Domain ID Protect

    Ensures the confidentiality of personal information in the WHOIS database.

  • Security

    Security Tools

    SSL Certificates

    SSL Certificate

    Offers encryption & data integrity,enabling secure online transactions.

    Remote Backups

    Remote Backups

    Data backup solution with offsite backups, encryption and 24/7 monitoring.

    SpamExperts Spam Filter

    Spam Filters

    Tools that detects & block spam, phishing, and malware emails, ensuring a safe email communication environment.

    Email Signing Certificates

    Email Signing Certificate

    Digital certificate that adds a layer of security to email communication.

    Email Signing Certificates

    Imunify 360

    Provides advanced protection against various types of malware, viruses, and other threats.

  • Contact us
  • Client Login

How to Add SSH Keys to Your GitHub Account

October 13, 2025 / Tutorial

In this article, we will explain how to add SSH keys to your GitHub Account.

Adding SSH keys to your GitHub account allows you to securely connect to repositories without entering your username and password each time.

Let us follow the guide:

  1. Open your terminal (Linux/macOS) or Git Bash (Windows).
  2. Run the following command to see if you already have an SSH key:
    ls -al ~/.ssh
  3. Look for files named ‘id_rsa.pub’ or ‘id_ed25519.pub’. If present, you can use them; otherwise, proceed to generate a new key.
  4. Generate a new SSH key by running:
    ssh-keygen -t ed25519 -C “[email protected]”

    If your system doesn’t support ed25519, use:

    ssh-keygen -t rsa -b 4096 -C “[email protected]”
  5. When prompted to “Enter a file in which to save the key,” press Enter to accept the default.
  6. Add a passphrase if you want extra security (optional).
  7. Start the SSH agent by running:
    eval “$(ssh-agent -s)”
  8. Add your key to the agent:
    ssh-add ~/.ssh/id_ed25519

    Replace ‘id_ed25519’ with your key filename if different.

  9. Copy your public key to the clipboard:
    cat ~/.ssh/id_ed25519.pub
  10. Copy the full output (starts with ssh-ed25519 or ssh-rsa).
  11. Log in to your GitHub account.
  12. Go to ‘Settings>SSH and GPG keys>New SSH key’.
  13. Give your key a descriptive Title (e.g., “Work Laptop”).
  14. Paste your public key into the ‘Key’ field.
  15. Click ‘Add SSH key’.
  16. Test your SSH connection by running:
    ssh -T [email protected]

    You should see a message like:
    Hi username! You’ve successfully authenticated, but GitHub does not provide shell access.

In this manner, adding SSH keys to GitHub improves security and makes working with repositories faster and more convenient. Make sure to keep your private keys safe and never share them.

Visit our Knowledge Base to learn how to change the SSH Port in Red Hat Enterprise Linux.

Posted in: Tutorial Tagged with: Add SSH Keys to Your GitHub Account

Categories

Recent Posts

  • What is a .io Domain? Meaning, Uses & Why It’s Popular in Tech
  • How to Manage Nginx with Start, Stop, and Restart
  • What Are CPU Cores vs Threads?
  • Determining MySQL Database Storage Size and Table Size
  • How Can I Find the Private Key for SSL Certificate?

Web Hosting

  • - Linux Shared Hosting
  • - Windows Shared Hosting
  • - WordPress Hosting
  • - Linux Reseller Hosting
  • - Windows Reseller Hosting

Web Servers

  • - Self-Managed VPS Hosting
  • - Linux VPS Hosting
  • - Windows VPS Hosting
  • - Dedicated Servers
  • - Cloud Hosting
  • - Servers Sale

Domains

  • - Domain Name Search
  • - Domain Transfer
  • - Domain ID Protect

Security Tools

  • - SSL Certificate
  • - Remote Backups
  • - Spam Filters
  • - Email Signing Certificate
  • - Imunify 360

Community

  • - Blog
  • - Knowledgebase

Resources

  • - Client Login
  • - Request Quote
  • - Partner Program
  • - Sitemap

About bodHOST

  • - Why Choose bodHOST
  • - Customer Testimonials
  • - Our Datacenters
  • - Uptime Commitment
  • - Contact Us

Legal

  • - Terms & Conditions
  • - Service Level Agreement
  • - Privacy Policy
  • - Billing Policies

bodhost

Digital guardian of your online presence, armed with robust web hosting solutions that stand the test of time...

Subscribe to Newsletter!

Stay in the loop with our latest news, offers, and updates by subscribing to our newsletter.

Find us on

  • Paypal
  • Mastercard
  • Visa

Copyright 2026 © bodHOST.

All Rights Reserved.