[Bug 3789] New: Follow symlinks on saving keys from ssh-keygen

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Feb 14 23:26:46 AEDT 2025


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

            Bug ID: 3789
           Summary: Follow symlinks on saving keys from ssh-keygen
           Product: Portable OpenSSH
           Version: 9.9p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: ssh-keygen
          Assignee: unassigned-bugs at mindrot.org
          Reporter: dbelyavs at redhat.com

ssh-keygen does not create the .ssh directory for alternate homes
e.g.

# ln -s /root /altroot
# ls -l /root/.ssh

# ssh-keygen -t rsa -f /altroot/.ssh/rsa.key -N ""
Generating public/private rsa key pair.
Saving key "/altroot/.ssh/rsa.key" failed: No such file or directory

Looks like we can use, e.g. sftp_realpath for normalizing the path

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


More information about the openssh-bugs mailing list