From a42db0a13cf1ab57f019a3e95aee56d5a09f3f12 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 14 Feb 2013 14:10:17 +0100 Subject: [PATCH] ssh-keygen -d is no longer supported and is now -t dsa --- source/steps/StartDebug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/steps/StartDebug.py b/source/steps/StartDebug.py index 5cdf8f7..6a9e130 100644 --- a/source/steps/StartDebug.py +++ b/source/steps/StartDebug.py @@ -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 ) -- 2.43.0