Revision history [back]

click to hide/show revision 1
initial version

can't ssh to new created instances any more

i had a weird case here that i can't ssh to newly created instances anymore (juno, ubuntu instance). same keypair same image, also can't access from console or internet via newly generated keypair. always respones "server refuses your key" or doesnt support the auth method. but the old instance created before with the same keypair is able to sshed.

i also noticed 2 problems here,

  1. instance reboot or bootup takes longer than before and have this error util.py[WARNING]: 'http://169.254.169.254/20090404/metadata/instanceid' failed [50/120s]: url error [timed out].

    1. the key fingerprints in the log of newly created instance is quite different from the fingerprint that loaded at first. see below the newly created instance called "test6" and loading keypair whose fingerprint is 53:4d:9e:ce:2e:2a:28:d8:9b:95:67:db:50:c3:3e:cc

but in the log of test6, fingerprints are different like below * Starting OpenSSH server[74G[ OK ] * Starting regular background program processing daemon[74G[ OK ] * Starting deferred execution scheduler[74G[ OK ] * Stopping save kernel messages[74G[ OK ] * Stopping CPU interrupts balancing daemon[74G[ OK ] * Starting automatic crash report generation[74G[ OK ] open-vm-tools: not starting as this is not a VMware VM landscape-client is not configured, please run landscape-config. * Restoring resolver state... [80G [74G[ OK ] * Stopping System V runlevel compatibility[74G[ OK ]

Ubuntu 14.04.1 LTS ubuntu ttyS0

ubuntu login: Cloud-init v. 0.7.5 running 'modules:config' at Thu, 29 Jan 2015 08:27:42 +0000. Up 419.52 seconds. Generating locales... en_US.UTF-8... up-to-date Generation complete. Cloud-init v. 0.7.5 running 'modules:final' at Thu, 29 Jan 2015 08:27:45 +0000. Up 422.42 seconds. ci-info: no authorized ssh keys fingerprints found for user ubuntu. ci-info: no authorized ssh keys fingerprints found for user ubuntu. ec2: ec2: ############################################################# ec2: -----BEGIN SSH HOST KEY FINGERPRINTS----- ec2: 1024 dd:59:7d:7c:1a:36:24:46:c6:e8:c1:74:38:b3:ae:93 root@ubuntu (DSA) ec2: 256 b4:d0:dd:19:d8:19:a5:e3:51:4f:96:2a:a2:b6:2c:d6 root@ubuntu (ECDSA) ec2: 2048 f6:10:fa:fe:88:1a:a9:1c:f4:25:32:fe:1a:ed:b6:1d root@ubuntu (RSA) ec2: -----END SSH HOST KEY FINGERPRINTS----- ec2: ############################################################# -----BEGIN SSH HOST KEY KEYS----- ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNRxzpVW1DcqK/n6HM0Rb2Se+/e7HBQ7YBCqSXp66MnAF3n1ekJQ1kTslIbJv1gS/dG8k+047KYiy0w2fLkFhEs= root@ubuntu ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDEFGiKKyryaMNXXhrjUh1ocpdHw2TRmctnIT8eiizmUFP3oVR5YAp3Rn9K/xEdolLFNtTl0Z1FJ6ASDvr/h79KnKNNrWp/J/cva93SgrPM8RK1PskirYHb9+tiwCW6qFuLyZy0dKYi7g/flpT3PA8ZtbXXIL5mXU82jddRElHHhyFqFM04UVIoBtyFM+whkPcYvbG4mb4trU5bIRmfoHpq0QE7BOk0kOm9vtazcUJLzlKZQY2bxrzze589e4UUsFfaiOJFn6eqBRHGwhtEnsbEOTybMwBW5AXcHszfWuEs2mZw/5vV9xqtEmukxHiteT42ixPTjmzIvbo3eenWPGGP root@ubuntu -----END SSH HOST KEY KEYS----- Cloud-init v. 0.7.5 finished at Thu, 29 Jan 2015 08:27:45 +0000. Datasource DataSourceNone. Up 422.60 seconds 2015-01-29 08:27:45,659 - cc_final_message.py[WARNING]: Used fallback datasource

anyone has idea on it?

thanks