Somewhere I read that to access a remote machine through SSH we need to copy
~/.ssh/id_rsa.pub of the local machine to
~/.ssh/authorized_keys of the remote machine. I did this and I can access remote machine through ssh.
I want the remote machine to be accessible from multiple servers, like: Machine A can access machine B, and there is another machine C which can also access machine B.
~/.ssh/id_rsa.pub of machine A to
~/.ssh/authorized_keys of machine B and I can access machine B.
But I also want to access machine B from machine C then what should I do? I mean, where should I copy
~/.ssh/id_rsa.pub of machine C to machine B so that I can access machine B from machine C?