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?
@
form on both?:ssh -vvv user@machine
, and runssh-add -l
on both machines. Edit question to show the output of both commands. Have you added the public key of your home machine to the servers? – ctrl-alt-delor Jul 10 at 17:51worker1
? – ctrl-alt-delor Jul 10 at 17:52