Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I manually configured an AWS EC2 instance with Ubuntu, Ruby, MySQL. This instance is configured with both a key and password based login. For key login, I can ssh in using ubuntu as a user name and the key.

I created an image from this instance, and then used the image to create a new instance. I did not change anything. I am using the same key for the new instance. I was expecting to be able to ssh using the same key and the login name ubuntu, but it's not allowing me to connect. I also tried using the same login name and password as the original instance, but it won't let me login either. Any ideas?

System log file: Generating public/private rsa key pair. Your identification has been saved in /etc/ssh/ssh_host_rsa_key. Your public key has been saved in /etc/ssh/ssh_host_rsa_key.pub. The key fingerprint is:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx root@ip-10-xxx-xx-xxx
The key's randomart image is:
.......................
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx root@ip-10-xxx-xx-xxx

The key's randomart image is:
....................
Generating public/private ecdsa key pair.

Your identification has been saved in /etc/ssh/ssh_host_ecdsa_key.

Your public key has been saved in /etc/ssh/ssh_host_ecdsa_key.pub.

The key fingerprint is:

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx root@ip-10-xxx-xx-xxx

The key's randomart image is:

...................

ec2: 
ec2: #############################################################
ec2: -----BEGIN SSH HOST KEY FINGERPRINTS-----
ec2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  root@ip-10-xxx-xx-xxx (DSA)
ec2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  root@ip-10-xxx-xx-xxx (ECDSA)
ec2: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  root@ip-10-xxx-xx-xxx (RSA)
ec2: -----END SSH HOST KEY FINGERPRINTS-----
ec2: #############################################################
-----BEGIN SSH HOST KEY KEYS-----
ecdsa-sha2-nistp256 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx= root@ip-10-xxx-xx-xxx
ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx root@ip-10-xxx-xx-xxx
-----END SSH HOST KEY KEYS-----
cloud-init boot finished at Thu, 31 Jul 2014 17:12:41 +0000. Up 52.59 seconds
share|improve this question
    
This should have worked. But there are a couple of things you can check: 1. The system log of the new instance (EC2->Actions->Get system log). Does it say login at the bottom? Are there any errors? 2. The security group, is it the same as the first instance? –  jmiserez Aug 1 at 2:28
    
It's not the security group. I am editing the question to include the EC2->Actions->Get system log tail end of the file. Why is it generating keys? I told it to use my existing keys. –  EastsideDeveloper Aug 1 at 3:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.