ssh-copy-id using a different key than what I want

Revision history
Tags: ssh ssh-copy-id pki

I have created some different keys for different purposes, but ssh-copy-id seems to always want to use the last one I created. It picks the one with the most recent timestamp, so touching the one you want to use by default will solve it.

$: touch ~/.ssh/id_rsa{,.pub}

If you have any comments or feedback, please send me an e-mail. (stig at stigok dotcom).

Did you find any typos, incorrect information, or have something to add? Then please propose a change to this post.