Will be cleaned up later
Commands on Jump server:
cd /root/.sshssh-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.
Copyright © 2020
Lingonberry by Anders Noren — Proudly Powered by Bludit — Up ↑
Authentication using SSH Keys on a jump server
Will be cleaned up later
Commands on Jump server:
Commands on Target server:
At this point you can login to target server from jump server without password.