ssh key of newly created ec2 instance using boto
问题 I am using boto to connect to EC2 and launch an instance. After creating the instance, I need to ssh to it. I need the public ssh key of the server to add that to my known hosts file. How do I get the key using boto? I do not want to bypass the key verification. I have used boto command shell, but looking at source, it looks like boto uses paramiko and bypasses checking the ssh key. Can anyone please help? 回答1: # Check to see if specified keypair already exists. # If we get an InvalidKeyPair