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)
It appears that using
opkssh logincannot override any existingid_ecdsaandid_ecdsa.pubfiles 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_opksshandid_opkssh.puband 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)