Usually when setting up SSH key access between boxen I’m manually copying over public keys like some kinda sucker. But recently I’ve found out about ssh-copy-id and it’s pretty helpful.
All you need is to already have your SSH id generated on your main workstation and to have password access to your destination. Then you can run the following command to get your SSH public key copied to the destination box.
That’s all, your keys now setup on the destination box.
You can add a similar block to your SSH config so you can just ssh destination to login automagically.
Host destination HostName destination User j IdentityFile ~/.ssh/id_rsa