ssh-copy-id using a different key than what I want
- 04 Jun 2017: Post was created (diff)
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 touch
ing 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.