From 4bd58bf751016eecaf406e82d893acd3cf9af090 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 3642a5026cd..0d571c4dcaf 100755 --- a/server/src/com/cloud/server/ConfigurationServerImpl.java +++ b/server/src/com/cloud/server/ConfigurationServerImpl.java @@ -571,7 +571,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 {