Skip to content

opkssh login command cannot override existing id_ecdsa #69

@KieranP

Description

@KieranP

It appears that using opkssh login cannot override any existing id_ecdsa and id_ecdsa.pub files in ~/.ssh. This is good, because this would have been quite troublesome if it did and I had not had those ssh keys backed up. However, this blocks the use of the login command for those with existing keys.

I recommend that, instead of erroring out, if both id_ecdsa and id_ed25519 are in use, the login command write the ssh key to a new unique filename, e.g. id_opkssh and id_opkssh.pub and print some setup instructions to include adding IdentityFile to each ssh host that needs to use opkssh. And if id_opkssh exists, always update that, even if id_ecdsa/id_ed25519 don't exist.

This would be my preferred approach IMO (i.e. always using id_opkssh)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions