Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ux: removing the smart card removes the public key file #527

Open
martinpaljak opened this issue Jan 29, 2024 · 0 comments
Open

ux: removing the smart card removes the public key file #527

martinpaljak opened this issue Jan 29, 2024 · 0 comments

Comments

@martinpaljak
Copy link
Sponsor

A smart card public key file is deleted from the disk on card removal, while it might be beneficial to have it there at all times, to not generate a warning (no such identity: /Users/martin/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/PublicKeys/xxx.pub: No such file or directory) if the file is referenced in .ssh/config IdentityFile and the card is not currently inserted.

Workaround is to copy the pubkey to a permanent location, like inside ~/.ssh. If the key in the fixed file is the only one suitable for authentication but not present in the agent, the error will still be magnificent: Load key "/Users/martin/.ssh/test.pub": invalid format ... (OpenSSH_9.4p1, LibreSSL 3.3.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant