From fbc8c27f685934291f8d79e2c8f0c72a985020ee Mon Sep 17 00:00:00 2001 From: anthony Date: Wed, 11 Jan 2012 18:34:09 -0800 Subject: [PATCH] bug 13012: not sure why id_rsa has passphrase, use the new script to create ssh key, make sure there is no passphrase in the key. status 13012: resolved fixed --- server/src/com/cloud/server/ConfigurationServerImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/com/cloud/server/ConfigurationServerImpl.java b/server/src/com/cloud/server/ConfigurationServerImpl.java index 675d682d704..3ea22a99ba2 100644 --- a/server/src/com/cloud/server/ConfigurationServerImpl.java +++ b/server/src/com/cloud/server/ConfigurationServerImpl.java @@ -552,7 +552,7 @@ public class ConfigurationServerImpl implements ConfigurationServer { s_logger.info("Systemvm keypairs not found in database. Need to store them in the database"); } //FIXME: take a global database lock here for safety. - Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then true ; else yes '' | ssh-keygen -t rsa -q ; fi"); + Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then rm -f ~/.ssh/id_rsa ; fi; ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa -q"); byte[] arr1 = new byte[4094]; // configuration table column value size try {