ssh-keygen -t rsa
Press Enter at every prompt
ssh-copy-id -i ~/.ssh/id_rsa root@machine.domain.com
ssh without a password
ssh-keygen -t rsa, press Enter at every prompt, then run: ssh-copy-id -i ~/.ssh/id_rsa root@machine.domain.com

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.