Closed bn0ir closed 1 year 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!
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.
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.
Add
-d
flag, it removes user / host from public key label and set it to static value