Add root ssh keys to hosts with root password access

ssh-keygen

cat ~/.ssh/id_rsa.pub | \
  ssh <user>@<host> \
  "sudo mkdir /root/.ssh; sudo tee -a /root/.ssh/authorized_keys"