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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:17:55+00:00 2026-05-21T18:17:55+00:00

why is SSH not working? I keep getting.. ssh: connect to host ec2-11-11-11-11.compute-1.amazonaws.com port

  • 0

why is SSH not working?

I keep getting..

ssh: connect to host ec2-11-11-11-11.compute-1.amazonaws.com port 22: Operation timed out

when trying to connect to my amazon EC2 server, at first i thought it was some sort of firewall but i have no firewall and i can SSH in to my MediaTemple server.

the chmod of my pem is 600. and this is how im trying to ssh..

ssh -i ~/.ssh/ServerKey.pem ubuntu@ec2-11-11-11-11.compute-1.amazonaws.com

i have a AMI ID: ami-508c7839 so i seen on a video the user should be ubuntu.

i hope someone can see an error somewhere because i dont have a clue. if it helps to know im on a mac.

thanks in advance

  • 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-21T18:17:55+00:00Added an answer on May 21, 2026 at 6:17 pm

    Run your ssh command in verbose mode to see where exactly it’s timing out in.

    ssh -i ~/.ssh/ServerKey.pem -v ubuntu@ec2-11-11-11-11.compute-1.amazonaws.com
    

    Also, I would advice you to specify the absolute path to your ssh key instead of using the ~ tilde sign. (It will save you a headache if you want to auto connect to your EC2 server from a script/cron).

    -Tony

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

Sidebar

Related Questions

I have gitosis setup and working wonderfully using ssh. git@domain.com:repository.git works just as expected.
I've read Visual VM remotely over ssh but I think I've not fully understood
When I try to connect through SSH from inside the JAIL I get this
ssh will look for its keys by default in the ~/.ssh folder. I want
Trying to setup an SSH server on Windows Server 2003. What are some good
I use ssh-agent with password-protected keys on Linux. Every time I log into a
When I ssh into a remote production server I would like the colour scheme
When I try to use an ssh command in a shell script, the command
I'd like to establish an ssh tunnel over ssh to my mysql server. Ideally
I've wrapped Perl's Net::SSH::Expect with a small module to reduce the boilerplate code needed

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.