Skip to content

Commit 4bd58bf

Browse files
committed
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
1 parent 6df2cd0 commit 4bd58bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/com/cloud/server/ConfigurationServerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ protected void updateKeyPairs() {
571571
s_logger.info("Systemvm keypairs not found in database. Need to store them in the database");
572572
}
573573
//FIXME: take a global database lock here for safety.
574-
Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then true ; else yes '' | ssh-keygen -t rsa -q ; fi");
574+
Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then rm -f ~/.ssh/id_rsa ; fi; ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa -q");
575575

576576
byte[] arr1 = new byte[4094]; // configuration table column value size
577577
try {

0 commit comments

Comments
 (0)