[cs615asa] Permission denied (publickey) on every new instance

hyan2 hyan2 at stevens.edu
Mon Feb 4 16:51:15 EST 2013


Finally, I find the problem is not the method to generate the key file. 
The problem is that in that article I just followed the author's 
instruction that only paste the key text into the private file but 
ignore this two line:
"---- BEGIN RSA PRIVATE KEY ----"
"-----END RSA PRIVATE KEY-----"

When I add this to my private key file. Everything works fine now. But 
I still confused why I can log in Omni OS.

-Han

On Mon, 4 Feb 2013 16:38:13 -0500, Chao wrote:
> Do you mean you use ec2-create-keypair instead of ec2-add-keypair 
> command?
>
> Chao
>
> On Feb 4, 2013, at 4:25 PM, hyan2 <hyan2 at stevens.edu> wrote:
>
>> Hi Professor,
>>
>> Initially, I followed this instruction to generated the key pair: 
>> http://paulstamatiou.com/how-to-getting-started-with-amazon-ec2. I 
>> think that key pair has some problems. Now, I changed the method to 
>> generate the key pair. It works now.
>>
>> Thank you. I also have attached the file 'typescript'.
>>
>> -Han
>>
>> On Mon, 4 Feb 2013 15:52:47 -0500, Jan Schaumann wrote:
>>> hyan2 <hyan2 at stevens.edu> wrote:
>>>
>>>> For ubuntu, I tied to log in as 'ubuntu'. For Amazon linux, I 
>>>> tried to
>>>> log in as 'ec2-user'.
>>>
>>> Run the following commands:
>>>
>>> unalias ls
>>> export PS1="$ "
>>> script
>>> ls -l ~/.ssh
>>> <whatever command you use to start the instance>
>>> ssh -v <user and hostname of the new instance>
>>> exit
>>>
>>> Then send the file 'typescript' here.
>>>
>>> -Jan
>>> _______________________________________________
>>> cs615asa mailing list
>>> cs615asa at lists.stevens.edu
>>> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
>> <typescript>
>> _______________________________________________
>> cs615asa mailing list
>> cs615asa at lists.stevens.edu
>> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
> _______________________________________________
> cs615asa mailing list
> cs615asa at lists.stevens.edu
> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa


More information about the cs615asa mailing list