I cannot imagine what you believe any of that has to do with bash. It is clearly entirely related to ssh/sshd and the way you are using it.
I suspect the "problem" relates to a misunderstanding of what the -i ootion to ssh actually does, but you should talk to ssh people, not bash people, to confirm that. kre