Will be cleaned up later

Commands on Jump server:

cd /root/.ssh

ssh-keygen -t rsa #Only run if "/root/.ssh/id_rsa.pub" doesn't exist.

scp /root/.ssh/id_rsa.pub 10.1.0.2:/tmp/. #replace 10.1.0.2 with the IP of your target server

Commands on Target server:

cd /tmp/

cat id_rsa.pub >> /root/.ssh/authorized_keys #Make sure to include ">>" instead of ">" so you won't overwrite the file



At this point you can login to target server from jump server without password.