Linux SSH Authentication Not Passed

Hi there,

I have completed the task and verified user ‘thor’ is able SSH into 3 app servers without password after setting up SSH key authentication. But I get the task failed. Please have a look.

I could not take the screenshots, as the environment expired.

you have to take app server sudoers user instead of thor user. Like app1 server sudo user is tony.
hope you understood.

1 Like

Thanks for your reply. The question is ambiguous and could have been clearer. Would there be an opportunity to discuss about the completed tasks ?.

@Tej-Singh-Rana

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.

@Tej-Singh-Rana

SSH_Passwordless1

I did exactly the same and still getting failed message !! .

@osmansays
perhaps @Inderpreet can shine some light on this topic

@osmansays
how did you install the public key to all app servers from thor user on jumphost ?

@Ali you don’t need to use sudo that means you are behaving like root. If you wants to see what is difference b/w sudo or normal user do one thing.
try it :–
before try this login from sudo user like thor.
sudo whoami
whoami
thats why your task is failed.
In the task, ssh passwordless authentication from thor user, sudo user of jump host.
to app server sudo user is tony, steve, & banner. so you have to try like :–
ssh-key-gen -t rsa
ssh-copy-id [email protected]
after that copy, you can be able to login without password. If still facing permission denied issue, You have to move into ssh configuration file and change configuration of password authentication of target host system.
ssh [email protected]
Hope you will get my points.
thanks,

@Tej-Singh-Rana

Yea, I figured it out when @peterwhite pointed i used sudo… I made a mistake, I knew it right that second. Thanks for you quick inputs guys, really appreciate it

I have done the ssh key task and I am able to access all the app servers without password(you can see the screenshot), but when I submit, then the result is failed and after that I tried without password but it is not working. I have done the same multiple times, so can anyone help me on this?

Hi @praveen.m727,
Please share your KKE username. We will check it.

Regards,

username: praveen-mani

Hi @praveen.m727,
Thanks for sharing the username. Let me check.

I am not able to see your work. Did you click on the redo option?

oh sorry, i have redo it… let me do it again and inform you if the issue is happening again.

Can you please check on the issue again?

Thanks, I am checking.

Hi @praveen.m727,
While generating keys, please don’t give any names. It should be the default name.

Regards,

I read the task description, and nowhere was written to name the key as thor.pub. Maybe because of that it’s failing.
Please give it a try again with the default values.

Regards,