I have an embedded device with Linux on board and ssh daemon. Users connect to that device using public key authentication. They generate rsa keys, when send it to me and I add them to .ssh/authorized_keys on device. Everything works well, but device memory is limited and I found what it has a lot of useless keys.
So, how could I remove useless keys? Could I do something like this:
Create file username.pub what will contains username's public key, and if it will change, I simply overwrite it?
Thanks in advance.
P.S. Please, sorry for my English.
P.S.S. I'm new in this and have no time to make any research.