Say I have local access to two machines A and B and remote access to machine C.
If I generate a public-private pair of keys for accessing machine C from A, can I share the private key with machine B to access machine C from it? Or do I need to generate a new public-private pair?
At the moment I have a pair of keys working to access C from A, but when I use this private key from B it doesn't work.
In case it matters, I use a config file for this as follows:
Host XXX User XXX HostName XXX IdentityFile ZZZ
Where ZZZ points to the key in B (different paths in the machines A and B)
I am using the same username in both.