Apologies if this question isn't sophisticated enough, I am sort of new to Gnu/Linux. I've 4 VMs in Azure all running CentOS, 1 master and 3 workers.
I've set up a passwordless authentication between these using ssh-keygen and ssh-copy-id commands and added hostnames with respective IP addresses into the
/etc/hosts file. Everything works OK. However if I log into the master not from my work laptop, but from my home machine (using putty), with the same user I cannot do
ssh worker1 anymore, I get permission denied (public_key) and I don't understand why it is, as this was set between the hosts, why does it matter where I'm logging in from. Can anyone explain please?