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

  • Home
  • SEARCH
  • 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 8430537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:37:05+00:00 2026-06-10T05:37:05+00:00

I recently created my first EC2 instance through Amazon Web Services and uploaded my

  • 0

I recently created my first EC2 instance through Amazon Web Services and uploaded my SSH certificate found in my .ssh folder on my users mac home folder. Through the terminal I now try to connect to my instance using elastic IP and it works when I prepend the SSH call with sudo. When I omit sudo I get an error message

Add correct host key in /Users/ola/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/ola/.ssh/known_hosts:13 
RSA host key for 54.247.165.223 has changed and you have requested strict checking.
Host key verification failed.

The same problem occurs as I try to log into the server using a SFTP connection.

My question, I guess, is why doesn’t it work when the key pair I use is the one uploaded from my users .ssh directory (and the same I use for some other services), and why it works when I add sudo.

Another question will then be, what is the difference between having the keys, both private and public, in .ssh under the user root or saving it in a known_host folder. Is there any different convention from unix on mac, linux and other system, or is this standard across every platform.

(I run an Ubuntu server as my AMI)

  • 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-10T05:37:06+00:00Added an answer on June 10, 2026 at 5:37 am

    It seems your known_hosts file has an old or conflicting entry for that IP from a previous point in time. If you edit that file and remove line 13 (matching that ip) and save, when you connect again it should act like the first time and add it to known_hosts properly.

    That file is where public keys are stored from previous connections to speed up future ones by simply using the key right away.

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

Sidebar

Related Questions

I recently created my first bash script, and I am having problems perfecting it's
I recently created my first android live wallpaper and it would not work on
i have recently created my first app and got it onto my ipad, however,
I recently created my first custom control. I attempted to add it in a
I recently created my first custom control. I attempted to add it in a
I recently created my first Heroku application and I'm finding some strange behavior: When
I recently created a scoring system where the users are ordered by their points
I recently created a new header file that I want to include in the
I recently created a advanced form with elements that use jquery's $().hide & $().show
I recently created my simple log4net database table for logging via the adonet appender..

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.