trustcrypto / onlykey-agent

The OnlyKey agent is essentially middleware that lets you use OnlyKey as a hardware SSH/GPG device.
https://docs.crp.to/onlykey-agent.html
GNU Lesser General Public License v3.0
46 stars 15 forks source link

Flag to use single key for different user / host pairs #8

Closed bn0ir closed 1 year ago

bn0ir commented 5 years ago

Add -d flag, it removes user / host from public key label and set it to static value

onlykey commented 5 years ago

@bn0ir Looks good, I will have to test the new feature out. Its not as secure as using a different key for each server but it would definitely be a nice option to have. Thanks for contributing!

bn0ir commented 5 years ago

After some testing, I have an idea to extend this flag to -l labelname with default value. Without labelname -l the behaviour will be as described in pull request, otherwise labelname will be used as public key label. I think this flag can be more useful, and want to update pull request if you agree.

bn0ir commented 1 year ago

Sorry for the long delay. Looks like ssh agent had stored keys support now: https://docs.onlykey.io/onlykey-agent.html#ssh-agent-quickstart-guide-stored-keys And this PR is not needed anymore, so I will close it.