ssh-keygen -d is no longer supported and is now -t dsa
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 14 Feb 2013 13:10:17 +0000 (14:10 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 14 Feb 2013 13:10:17 +0000 (14:10 +0100)
source/steps/StartDebug.py

index 5cdf8f7..6a9e130 100644 (file)
@@ -89,7 +89,8 @@ def Run( vars, log, last_resort = True):
     key=ssh_dir+"/ssh_host_dsa_key"
     if not os.path.isfile (key):
         log.write("Creating host dsa key %s\n"%key)
-        utils.sysexec( "ssh-keygen -d -f %s -N ''" % key, log )
+        # very old versions did 'ssh-keygen -d' instead of 'ssh-keygen -t dsa' 
+        utils.sysexec( "ssh-keygen -t dsa -f %s -N ''" % key, log )
 
     # (over)write sshd config
     utils.sysexec( "cp -f %s/sshd_config %s/sshd_config" % (ssh_source_files,ssh_dir), log )