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 7965455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:09:41+00:00 2026-06-04T06:09:41+00:00

I not sure why but even though I mention properly in ssh config to

  • 0

I not sure why but even though I mention properly in ssh config to look for identity file with name viren.pub for github

git still considering id_rsa as default and it does not seem to work unless an until i rename viren.pub and viren to id_rsa.pub and id_rsa

Here my ssh config look like

Host ec2-123-121-121-121.compute-1.amazonaws.com
        Hostname github.com
        User git
        IdentityFile /root/.ssh/viren

Can anyone help

  • 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-06-04T06:09:42+00:00Added an answer on June 4, 2026 at 6:09 am

    I believe the ssh config only applies if you use the alias defined in host clause to connect to the server.

    I.e. you should have in ssh config have:

    host github
        hostname github.com
        user git
        identityfile /root/.ssh/viren
    

    The host directive has to be followed with something you will actually use to connect, so [Amazon server] is not appropriate. And you have to tell git to connect to:

    github:/....
    

    (and not git@github.com:/.....)

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

Sidebar

Related Questions

I am not sure what is going on but even though I am invoking
I'm not sure if this is even possible, but is there a way to
I'm not sure if this is even what you call it, but basically, I
Ok, not sure if this is even possible, but I want to change the
Not even sure how to explain this but I connect to a remote computer
I'm not even sure if it's possible but say I have some XML: <source>
I'm not even sure what this is called? But I'm trying to learn what
Hello! I'm not even sure if this is possible, but hopefully it is in
I'm not totally sure but this looks wrong: I have a header file named
I am using D-Day calendar and I am not sure but I got a

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.