[Bug 3090] New: ssh-keygen -e prints request for input message to stdout

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Nov 8 02:07:31 AEDT 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=3090

            Bug ID: 3090
           Summary: ssh-keygen -e prints request for input message to
                    stdout
           Product: Portable OpenSSH
           Version: 7.9p1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: qdinar at gmail.com

i have this instruction in my hosting help page:
ssh-keygen -e > ~/.ssh/key_rsa_alt.pub
when i run this, it prints an empty line and stops, on second Enter it
completes its execution. when i cat the .ssh/key_rsa_alt.pub, it has
Enter file in which the key is (/home/dinar/.ssh/id_rsa): ---- BEGIN
SSH2 PUBLIC KEY ----
in beginning.

man ssh-keygen says: -e This option will read a private or public
OpenSSH key file and print to stdout the key in one of the formats
specified by ...

so, i think, ssh-keygen should not print "Enter file in which the key
is" to stdout and should print it into terminal. is it possible? by
searching "how to print to terminal but not print to stdout" in google,
i have found this: https://stackoverflow.com/q/23118252 .

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


More information about the openssh-bugs mailing list