bugzilla-daemon at mindrot.org
2025-Feb-14 12:26 UTC
[Bug 3789] New: Follow symlinks on saving keys from ssh-keygen
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.
Maybe Matching Threads
- Enforcing sha2 algorithm in ssh-keygen.c
- [Bug 3546] New: Use SHA2 in ssh-keygen key verification
- Enforcing sha2 algorithm in ssh-keygen.c
- [Bug 3761] New: ssh-keygen fails for security keys without attestation
- [patch] ssh-keygen(1): generate Ed25519 keys when invoked without arguments