Passwordless auth task , where did I go wrong

image not clear

but for passwordless auth you have to follow following steps
ssh-keygen -t rsa
ssh tony@172.16.238.10 mkdir -p .ssh
cat /home/thor/.ssh/id_rsa.pub | ssh tony@172.16.238.10 ‘cat >> .ssh/authorized_keys’
ssh tony@172.16.238.10 “chmod 700 .ssh; chmod 640
.ssh/authorized_keys”
ssh tony@172.16.238.10

Hello, @Olu
I think this task is to perform in the all app server ? is it?