I want to type password only once when connecting to SSH so I use ssh-copy-id and install my pubkey into authorized keys.
But I don't keep track which servers already have my key and which does not, so I issue ssh-copy-id again sometimes which adds duplicate key to authorized_keys?
- How to prevent ssh-copy-id from installing the key when it is already installed?
- /* How to make key installation automatic and transparent when connecting to SSH (without explicit
ssh-copy-id? */