[Bug 2825] New: ssh-keygen -t rsa1 generates key and then fails to save it

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Jan 24 22:43:08 AEDT 2018


            Bug ID: 2825
           Summary: ssh-keygen -t rsa1 generates key and then fails to
                    save it
           Product: Portable OpenSSH
           Version: 7.4p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: oxwghc at fyvzl.net

$ ssh-keygen -t rsa1 -b 2048 -f t
Generating public/private rsa1 key pair.
t already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Saving key "t" failed: unknown or unsupported key type

I guess this is a consequence of dropping SSH v1 protocol support.

(I was doing this because I have a program which uses RSA, relies on an
external key generator, and understands the ssh v1 key format.)

If ssh-keygen is not able to save in ssh1 RSA format, it should fail
early rather than going to all of the effort of generating a key (this
took a minute or two on my rpi) and then bombing out.

I filed this bug originally against Debian's version, here:

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list