ssh-copy-id -i ~/.ssh/mykey user@host
Test it:
ssh -i ~/.ssh/mykey user@host
OR:
cat ~/.ssh/raspberry-pi.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys
ssh-copy-id -i ~/.ssh/mykey user@host
Test it:
ssh -i ~/.ssh/mykey user@host
OR:
cat ~/.ssh/raspberry-pi.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys