Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6225921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:55:59+00:00 2026-05-24T08:55:59+00:00

I use ssh-keygen -T rsa to create a public key for accessing my git

  • 0

I use ssh-keygen -T rsa to create a public key for accessing my git hosting provider.

a) Does the passphrase entered here should be the same as the git hosting provider account password?
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

b) Can I use an empty password in the above step

c) What is the significance of providing “-C” option, if given the key contains this value else it contains the domainname\accountname in the key

d) I connect to 2 different git hosting providers (github and a private git hosting vendor). So I am assuming you have to create 2 keys OR having 1 key is enough for both the providers? Note: id_rsa.pub will erase the original copy if we create it twice.

Kindly clarify

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T08:56:00+00:00Added an answer on May 24, 2026 at 8:56 am

    a.) the passphrase of a SSH key is only interesting to you, no one else can or should see it. So no, it need not be the same as your hosting provider password.

    b.) Yes, the passphrase can be empty, but that means that anyone who can read the file can use it to be authenticated as you. This severly reduces the security.

    c.) -C specifies a comment. It has no effect. It’s simply there so that you can find out for which use you created a specific key if you come back after some time. It’s not a bad idea to add what you use it for here.

    d.) you can use a single key for both. Again, it’s a tradeoff between security and ease-of-use: using a single key means only a single set of files to backup and only a single passphrase to remember, but it also means that once it’s been compromised, both accounts are compromised at once.

    Also note that none of this is related to git, it’s all basic SSH information. So it applies to everything else that uses SSH keys as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use ssh port forwarding to defeat corporate firewall: ssh git@GIT_SERVER
I'm currently on a public WIFI spot and I'm unable to use SSH (they
I am able to use ssh (i.e., for 'git' with heroku or github etc.)
i use in linux the following command to create a tunnel tsocks ssh -n
I use ssh-agent with password-protected keys on Linux. Every time I log into a
Question: How to use ssh & scp from the Windows command prompt? I remember
This is a follow-on question to the How do you use ssh in a
I want to use Net::SSH::Expect in my unix box but unfortunately, it is not
When I try to use an ssh command in a shell script, the command
So I've been trying to use the Net::SSH::Multi to login to multiple machines using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.