unable to connect EC2 instance from browser, also failed to connect via SSHssh authentication nfsHow do you manage ssh keys to add a second user?Unable to SSH to EC2SSH accepts publickey authetication but won't connect with an identify file?Cannot SSH into Ubunto 10.10 running on EC2 as new userOpenSSH disable ControlMaster for given hostnameCan't SSH into Amazon EC2Unable to connect EC2 instance via sshAWS :: Ubuntu instance consistently denying my private keysHow to properly use rsync Push with SSH on local macOS to remote Debian
Accidentally cashed a check twice
Filling region bounded by multiple paths
How is it possible for this NPC to be alive during the Curse of Strahd adventure?
California: "For quality assurance, this phone call is being recorded"
Initialize an array of doubles at compile time
Is having a hidden directory under /etc safe?
Is it possible for people to live in the eye of a permanent hypercane?
Is there a rule that prohibits us from using 2 possessives in a row?
Can a magnetic field of a large body be stronger than its gravity?
What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?
pitch and volume compensations for different instruments
Credit card offering 0.5 miles for every cent rounded up. Too good to be true?
Asking bank to reduce APR instead of increasing credit limit
Does Peach's float negate shorthop knockback multipliers?
Is it possible to kill all life on Earth?
Does any lore text explain why the planes of Acheron, Gehenna, and Carceri are the alignment they are?
Applicants clearly not having the skills they advertise
Can a class take a different class's spell in their ritual book?
Did thousands of women die every year due to illegal abortions before Roe v. Wade?
What is a simple, physical situation where complex numbers emerge naturally?
Incremental Ranges!
How can I grammatically understand "Wir über uns"?
Is the decompression of compressed and encrypted data without decryption also theoretically impossible?
Is American Express widely accepted in France?
unable to connect EC2 instance from browser, also failed to connect via SSH
ssh authentication nfsHow do you manage ssh keys to add a second user?Unable to SSH to EC2SSH accepts publickey authetication but won't connect with an identify file?Cannot SSH into Ubunto 10.10 running on EC2 as new userOpenSSH disable ControlMaster for given hostnameCan't SSH into Amazon EC2Unable to connect EC2 instance via sshAWS :: Ubuntu instance consistently denying my private keysHow to properly use rsync Push with SSH on local macOS to remote Debian
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
From browser
http://assigned_instance.amazonaws.com
Unable to connect
Firefox can't establish a connection to the server at assigned_instance.compute-1.amazonaws.com.
From terminal### (SSH issue?)
$chmod 700 /home/me
$chmod 400 /home/me/.ec2/pstam-keypair.pem
$ssh -v -i /home/me/.ec2/pstam-keypair.pem ec2-user@assigned_instance.compute-1.amazonaws.com
OpenSSH_5.6p1, OpenSSL 1.0.0d-fips 8 Feb 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to assigned_instance.amazonaws.com http://1.2.3.4 port 22.
debug1: Connection established.
debug1: identity file /home/me/.ec2/pstam-keypair.pem type -1
debug1: identity file /home/me/.ec2/pstam-keypair.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'assigned_instance.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /home/me/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Trying private key: /home/me/.ec2/pstam-keypair.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic).
Ping
No problem
ssh amazon-ec2
migrated from stackoverflow.com Sep 29 '11 at 11:02
This question came from our site for professional and enthusiast programmers.
add a comment |
From browser
http://assigned_instance.amazonaws.com
Unable to connect
Firefox can't establish a connection to the server at assigned_instance.compute-1.amazonaws.com.
From terminal### (SSH issue?)
$chmod 700 /home/me
$chmod 400 /home/me/.ec2/pstam-keypair.pem
$ssh -v -i /home/me/.ec2/pstam-keypair.pem ec2-user@assigned_instance.compute-1.amazonaws.com
OpenSSH_5.6p1, OpenSSL 1.0.0d-fips 8 Feb 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to assigned_instance.amazonaws.com http://1.2.3.4 port 22.
debug1: Connection established.
debug1: identity file /home/me/.ec2/pstam-keypair.pem type -1
debug1: identity file /home/me/.ec2/pstam-keypair.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'assigned_instance.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /home/me/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Trying private key: /home/me/.ec2/pstam-keypair.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic).
Ping
No problem
ssh amazon-ec2
migrated from stackoverflow.com Sep 29 '11 at 11:02
This question came from our site for professional and enthusiast programmers.
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19
add a comment |
From browser
http://assigned_instance.amazonaws.com
Unable to connect
Firefox can't establish a connection to the server at assigned_instance.compute-1.amazonaws.com.
From terminal### (SSH issue?)
$chmod 700 /home/me
$chmod 400 /home/me/.ec2/pstam-keypair.pem
$ssh -v -i /home/me/.ec2/pstam-keypair.pem ec2-user@assigned_instance.compute-1.amazonaws.com
OpenSSH_5.6p1, OpenSSL 1.0.0d-fips 8 Feb 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to assigned_instance.amazonaws.com http://1.2.3.4 port 22.
debug1: Connection established.
debug1: identity file /home/me/.ec2/pstam-keypair.pem type -1
debug1: identity file /home/me/.ec2/pstam-keypair.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'assigned_instance.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /home/me/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Trying private key: /home/me/.ec2/pstam-keypair.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic).
Ping
No problem
ssh amazon-ec2
From browser
http://assigned_instance.amazonaws.com
Unable to connect
Firefox can't establish a connection to the server at assigned_instance.compute-1.amazonaws.com.
From terminal### (SSH issue?)
$chmod 700 /home/me
$chmod 400 /home/me/.ec2/pstam-keypair.pem
$ssh -v -i /home/me/.ec2/pstam-keypair.pem ec2-user@assigned_instance.compute-1.amazonaws.com
OpenSSH_5.6p1, OpenSSL 1.0.0d-fips 8 Feb 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to assigned_instance.amazonaws.com http://1.2.3.4 port 22.
debug1: Connection established.
debug1: identity file /home/me/.ec2/pstam-keypair.pem type -1
debug1: identity file /home/me/.ec2/pstam-keypair.pem-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.7
debug1: match: OpenSSH_4.7 pat OpenSSH_4*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'assigned_instance.amazonaws.com' is known and matches the RSA host key.
debug1: Found key in /home/me/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: Next authentication method: publickey
debug1: Trying private key: /home/me/.ec2/pstam-keypair.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,gssapi-with-mic
debug1: No more authentication methods to try.
Permission denied (publickey,gssapi-with-mic).
Ping
No problem
ssh amazon-ec2
ssh amazon-ec2
edited Sep 29 '11 at 11:12
Bart De Vos
16.2k45377
16.2k45377
asked Sep 29 '11 at 8:29
tomtom
1012
1012
migrated from stackoverflow.com Sep 29 '11 at 11:02
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Sep 29 '11 at 11:02
This question came from our site for professional and enthusiast programmers.
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19
add a comment |
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19
add a comment |
1 Answer
1
active
oldest
votes
I'd suggest you to re-check the assigned security groups to the Instance and even resetting them for SSH & HTTP access.
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f316771%2funable-to-connect-ec2-instance-from-browser-also-failed-to-connect-via-ssh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'd suggest you to re-check the assigned security groups to the Instance and even resetting them for SSH & HTTP access.
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
add a comment |
I'd suggest you to re-check the assigned security groups to the Instance and even resetting them for SSH & HTTP access.
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
add a comment |
I'd suggest you to re-check the assigned security groups to the Instance and even resetting them for SSH & HTTP access.
I'd suggest you to re-check the assigned security groups to the Instance and even resetting them for SSH & HTTP access.
edited Sep 29 '11 at 11:12
Bart De Vos
16.2k45377
16.2k45377
answered Sep 29 '11 at 8:34
AbhishekKrAbhishekKr
20713
20713
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
add a comment |
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
from Management console, I have the following for port 22 and port 80, are those correct? (NOTE: please edit this comment to see the correct table layout) 0 - 65535 sg-a7a9a8ce (default) 22 (SSH) 0.0.0.0/0 80 (HTTP) sg-a7a9a8ce
– tom
Sep 29 '11 at 9:22
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
@tom yes, those ports are correct... did you created a Spot Instance
– AbhishekKr
Sep 30 '11 at 8:34
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f316771%2funable-to-connect-ec2-instance-from-browser-also-failed-to-connect-via-ssh%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Looks like your KEY is wrong, mind if you check it once again? Make the instance that you are trying to connect is actually connected with this private key.
– Rakesh Sankar
Sep 29 '11 at 9:37
Here are some more things to think about and a list of information you can provide to make the question clearer: alestic.com/2009/08/ec2-connectivity
– Eric Hammond
Sep 29 '11 at 10:19