Index: cloud-init/cloudinit/CloudConfig/cc_ssh.py =================================================================== --- cloud-init.orig/cloudinit/CloudConfig/cc_ssh.py +++ cloud-init/cloudinit/CloudConfig/cc_ssh.py @@ -61,10 +61,10 @@ def handle(name,cfg,cloud,log,args): log.debug("generated %s from %s" % pair) else: # if not, generate them - genkeys ='ssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -N ""; ' - genkeys+='ssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa -N ""; ' - genkeys+='ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -t ecdsa -N ""; ' - subprocess.call(('sh', '-c', "{ %s }