Linux SSH Authentication Failed-task 4

Hi,


I am able to ssh into all app servers. still my task was marked as failed as - We tried ‘ssh tony@stapp01’ from user ‘thor’ on jump host but it didn’t work.
Please review and let me know if this task is success or not.

Hello @Ripun ,

Please try again with the steps below:

  1. Login to all the app servers and create authorized_keys file in specific users .ssh home directory as shown below -
    touch ~/.ssh/authorized_keys
  2. Change the permission of file to 600
  3. Now on jump_host generate the keys using command - ssh-keygen -t rsa
    Note - Just press enter for every question asked.
  4. Finally scp the ~/.ssh/id_rsa.pub from jump_host to all the app servers as shown below using respective passwords.
    Example - scp ~/.ssh/id_rsa.pub tony@stapp01:/home/tony/.ssh/authorized_keys

With above steps , you will be able to set the passwordless ssh from jump_host server for user thor to all the stapp server respective users.

Also this thread will be useful with more clarification:

Thanks,
KodeKloud Support