The following script generates a Key Pair for SSH
try
{
var strFingerPrint;
strFingerPrint = KeyPairManager.generateKeyPair("dsa", "../server/vmo/conf/vco_key_for_ssh", "P@ssw0rd1!", 2048, "");
Server.log(strFingerPrint);
}
catch (e)
{
Server.error("Failed to generate key pair", e);
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
