Say I'm on machine A and have SSH access to machines B and C. I'm logged in to machine B. I generate keys on B that I use to authenticate my access from B to C.
I've read that you should never generate keys on a remote system "over the internet". Why?