Fix various ssh-keygen invocation bugs
Fix various bugs with ssh-keygen invocation