@peterwhite I ran to a similar issue, please advise once you get a moment
question: we need to make sure thor user on jump host has password
less SSH access to all app servers through their respective sudo users. So based on the requirements:
Setup a passwordless authentication for user thor on jump host to all app servers through
their respective sudo users.
It would help to see a screenshot of the exact task description, but my understanding of that task, when I was last assigned it, was that user “thor” should be able to ssh, without password to tony@stapp01, steve@stapp02, and banner@stapp03.
Based on your terminal screenshot above, you ssh’d to each of those hosts using the ssh config for “root”, not “thor”. Each of those ssh commands should have worked without the “sudo” part in order to successfully complete the task. The “sudo” made ssh use the jumphost’s ssh configuration in ~root/.ssh instead of ~/.ssh.
thanks, I overlooked a simple task and without thinking further just pasted what was give in output. which had me confused, thinking I completed it correctly, but the fact i used sudo goes to show that it must have used root’s ssh config. You are absolutely correct. The ~/.ssh would be local to the user you are logged in and sharing the public key to User@IP. thanks point the silly mistake, Peter.