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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:10:06+00:00 2026-05-26T21:10:06+00:00

I had Ubuntu 10.04 and recently upgraded to 11.10. Additional SSH keys stopped working.

  • 0

I had Ubuntu 10.04 and recently upgraded to 11.10. Additional SSH keys stopped working. I have keys bitbucket and github, which I have in the websites. How can I tell SSH to use one particular key for Bitbucket and another for GitHub?

So, I have a config:

Host bitbucket
HostName 207.223.240.182
User hg
IdentityFile ~/.ssh/bitbucket

When I call ssh bitbucket, ssh successfully logs in with the key and gets kicked out. But when I try hg pull, I see “no response from remote hg.” and the passphrase is not asked.

What can be done?

  • 1 1 Answer
  • 1 View
  • 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-26T21:10:07+00:00Added an answer on May 26, 2026 at 9:10 pm

    For the little explanation on why the config posted in the question doesn’t work but your answer does :

    When you call ssh bitbucket, ssh looks in your config file for a host named bitbucket which is defined with the Host keyword. Then, using the HostName keyword, you can define the real hostname to use. In your case, you’re defining bitbucket as an alias for the IP 207.233.240.182 which I assume is the one for bitbucket.org

    It wasn’t working for your mercurial commands because the remote server is probably defined as bitbucket.org and not the alias bitbucket. After you changed the config file to the one proposed in your answer, ssh can effectively match the remote server to the host name and everything is fine !

    FYI, you can also use wildcard for the pattern matching, for example :

    Host bitbucket.*
        HostName 207.223.240.182
        User hg
        IdentityFile ~/.ssh/bitbucket
    

    Would also work, because when looking at the config, SSH will replace the * with anything else.

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

Sidebar

Related Questions

So, I have had this working on Ubuntu before. But then I upgraded to
I have a project hosted with git. I just recently had to reinstall ubuntu,
I have recently upgraded to Ubuntu 10.04 and as usual installed xdebug from the
I have setup an Ubuntu LAMP server, and I have had phpmyadmin working fine
So I had PostgreSQL working in Ubuntu 11.04 using 8.4(?), however, when I upgraded
I have setup the basic LAMP server on Ubuntu 11.10 and had a few
I have a server that is running Ubuntu Linux Server Edition. I once had
I am working on a fairly large project and have recently bumped into the
I'm recently starting to learn Java and have had success writing and compiling my
I have had lots of trouble with deploying my rails 3.0.10 application to Ubuntu

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.