[cs615asa] An error has occurred when I try to connect to ec2 instance
Paul-Anthony Dudzinski
pdudzins at stevens.edu
Mon Apr 14 14:16:31 EDT 2014
Looks like its not finding your key. Try specifying it with the absolute
path.
On Apr 14, 2014 1:18 PM, "zwang60" <zwang60 at stevens.edu> wrote:
> When I run ssh with -vvv, I got this:
>
> zwang60 at avalon:~$ ssh -i mykeypair.pem -vvv fedora at ec2-54-81-79-177.
> compute-1.amazonaws.com
> OpenSSH_5.9p1 Debian-5ubuntu1.3, OpenSSL 1.0.1 14 Mar 2012
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: /etc/ssh/ssh_config line 19: Applying options for *
> debug2: ssh_connect: needpriv 0
> debug1: Connecting to ec2-54-81-79-177.compute-1.amazonaws.com[54.81.79.177] port 22.
> debug1: connect to address 54.81.79.177 port 22: Connection timed out
> ssh: connect to host ec2-54-81-79-177.compute-1.amazonaws.com port 22:
> Connection timed out
>
>
> 04/14/2014 1:15 PM,Paul-Anthony Dudzinski :
>
>> Can you run ssh with the -vvv option to see the debug?
>> On Apr 14, 2014 1:07 PM, "zwang60" <zwang60 at stevens.edu> wrote:
>>
>> Hi, Nick,
>>> I have these inbound information in my security group:
>>> SSH
>>> TCP
>>> 22
>>> 155.246.89.103/32 [1]
>>> SSH
>>> TCP
>>> 22
>>> 155.246.89.105/32 [2]
>>> SSH
>>> TCP
>>> 22
>>> 155.246.89.106/32 [3]
>>> SSH
>>> TCP
>>> 22
>>> 155.246.89.108/32 [4]
>>> Is that correct?
>>>
>>> 04/14/2014 12:05 PM,Nick Smith :
>>> Oops, sorry. I missed that you tried that in the last line. Do you
>>> have SSH enabled in the security group? Sorry for the bad
>>> information.
>>>
>>> On Mon 14 Apr 2014 12:01:51 PM EDT, Nick Smith wrote:
>>> ami-3b361952 is Fedora, right? You can't ssh as root to this
>>> instance,
>>> try connecting as "fedora" instead.
>>>
>>> On Mon 14 Apr 2014 11:59:09 AM EDT, zwang60 wrote:
>>> Hello, Everyone.
>>>
>>> I have encountered a problem when use linux-lab to connect to
>>> ec2-instance. The details are as follows:
>>>
>>> 1. here is my aws configure information:
>>> AWS Access Key ID [****************IDSA]:
>>> AWS Secret Access Key [****************u0wO]:
>>> Default region name [us-east-1]:
>>> Default output format [json]:
>>> 2. create an instance use image-id: ami-3b361952
>>> zwang60 at avatar:~$ aws ec2 run-instances --image-id ami-3b361952
>>> --count 1 --instance-type t1.micro --key-name mykeypair
>>> --security-groups MySecurityGroup
>>> {
>>> "OwnerId": "916872542441",
>>> "ReservationId": "r-a95aac89",
>>> "Groups": [
>>> {
>>> "GroupName": "MySecurityGroup",
>>> "GroupId": "sg-521ef538"
>>> }
>>> ],
>>> "Instances": [
>>> {
>>> "Monitoring": {
>>> "State": "disabled"
>>> },
>>> "PublicDnsName": null,
>>> "KernelId": "aki-407d9529",
>>> "State": {
>>> "Code": 0,
>>> "Name": "pending"
>>> },
>>> "EbsOptimized": false,
>>> "LaunchTime": "2014-04-14T15:49:13.000Z",
>>> "ProductCodes": [],
>>> "StateTransitionReason": null,
>>> "InstanceId": "i-68201938",
>>> "ImageId": "ami-3b361952",
>>> "PrivateDnsName": null,
>>> "KeyName": "mykeypair",
>>> "SecurityGroups": [
>>> {
>>> "GroupName": "MySecurityGroup",
>>> "GroupId": "sg-521ef538"
>>> }
>>> ],
>>> "ClientToken": null,
>>> "InstanceType": "t1.micro",
>>> "NetworkInterfaces": [],
>>> "Placement": {
>>> "Tenancy": "default",
>>> "GroupName": null,
>>> "AvailabilityZone": "us-east-1c"
>>> },
>>> "Hypervisor": "xen",
>>> "BlockDeviceMappings": [],
>>> "Architecture": "i386",
>>> "StateReason": {
>>> "Message": "pending",
>>> "Code": "pending"
>>> },
>>> "RootDeviceName": "/dev/sda1",
>>> "VirtualizationType": "paravirtual",
>>> "RootDeviceType": "ebs",
>>> "AmiLaunchIndex": 0
>>> }
>>> ]
>>> }
>>> 3. ssh to this instance:
>>> zwang60 at avatar:~$ ssh -i mykeypair.pem
>>> ec2-user at ec2-54-81-79-177.compute-1.amazonaws.com
>>> The authenticity of host 'ec2-54-81-79-177.compute-1.amazonaws.com
>>> [5]
>>> (54.81.79.177)' can't be established.
>>> RSA key fingerprint is
>>> 3a:86:5a:d0:51:ed:72:df:5e:e9:9c:c5:69:25:19:05.
>>> Are you sure you want to continue connecting (yes/no)? yes
>>> Warning: Permanently added
>>> 'ec2-54-81-79-177.compute-1.amazonaws.com [5],54.81.79.177' (RSA)
>>> to the
>>> list of known hosts.
>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>>> zwang60 at avatar:~$ ssh -i mykeypair.pem
>>> root at ec2-54-81-79-177.compute-1.amazonaws.com
>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>>> zwang60 at avatar:~$ ssh -i mykeypair.pem
>>> ec2-user at ec2-54-81-79-177.compute-1.amazonaws.com
>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>>> zwang60 at avatar:~$ ssh -i mykeypair.pem
>>> fedora at ec2-54-81-79-177.compute-1.amazonaws.com
>>> Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
>>>
>>> What may cause this happen and is there any solution to this
>>> problem?
>>> Looking for your help to solve this problem.Thank you.
>>> Zhe
>>> _______________________________________________
>>> cs615asa mailing list
>>> cs615asa at lists.stevens.edu
>>> https://lists.stevens.edu/mailman/listinfo/cs615asa [6]
>>>
>> _______________________________________________
>> cs615asa mailing list
>> cs615asa at lists.stevens.edu
>> https://lists.stevens.edu/mailman/listinfo/cs615asa [6]
>>
>>
>> Links:
>> ------
>> [1] http://155.246.89.103/32
>> [2] http://155.246.89.105/32
>> [3] http://155.246.89.106/32
>> [4] http://155.246.89.108/32
>> [5] http://ec2-54-81-79-177.compute-1.amazonaws.com
>> [6] https://lists.stevens.edu/mailman/listinfo/cs615asa
>>
>> _______________________________________________
>> cs615asa mailing list
>> cs615asa at lists.stevens.edu
>> https://lists.stevens.edu/mailman/listinfo/cs615asa
>>
> _______________________________________________
> cs615asa mailing list
> cs615asa at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs615asa
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.stevens.edu/mailman/private/cs615asa/attachments/20140414/83f13944/attachment.html>
More information about the cs615asa
mailing list