[cs615asa] SSH connection problem solved! share some experiences

Sanzar Adnan Alam salam1 at stevens.edu
Fri Jan 30 23:09:06 EST 2015


I created a new instance for linux image, and I was able to log in with ec2-user instead of root. 

> On Jan 30, 2015, at 8:31 PM, Sanzar Adnan Alam <salam1 at stevens.edu> wrote:
> 
> I was able to do everything properly yesterday, now having the error "Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).” I tried both of your solution. But unfortunately it didn't work.
>  
>> On Jan 29, 2015, at 6:29 PM, hchen29 <hchen29 at stevens.edu <mailto:hchen29 at stevens.edu>> wrote:
>> 
>> Solution:
>> (1) Check your private key file. After using command "create-key-pair", the output is the private key with fingerprint at the very beginning and the name of the key pair at last. Your private key file should should not include those two parts. Just keep the ----begin RSA--- to ---the end of RSA--- part. At first, I didn't delete the fingerprint and the name at last, then the private key cannot be recognized.
>> (2) If you have a correct private key file, but error goes on, then you should check the username.
>>   "ssh -i mykey USERNAME at ec2-*-*-*.com"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs615asa/attachments/20150130/756ef302/attachment.html>


More information about the cs615asa mailing list