[Bug 1973] New: Key generation needs user assistance when destination file already exists

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jan 20 01:57:39 EST 2012


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

             Bug #: 1973
           Summary: Key generation needs user assistance when destination
                    file already exists
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.9p1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ssh-keygen
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: aleksey.morarash at gmail.com


Compiled from source openssh-5.9p1.

When generating new key pair with ssh-keygen it will ask something like

> <filename> already exists.
> Overwrite (y/n)? 

regardless of terminal existance. Worse, there is no option to disable
such behaviour.

To force file rewrite I use 'echo y' piped to ssh-keygen, but it still
outputs the question.

I expected '-q' option (Silence ssh-keygen) will be able to skip such
interactions.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list