So, when we login to the Red Hat machine we normally develop on, we have to go via another machine due to security reasons. The idea I had was to create an rsa key and connect to the next machine using ssh. I did this in the .cshrc.user file. However, what I did not think of was that the machines share my home drive. This causes the current procedure would create a loop which is not what I want. Do anyone have any ideas how to proceed?
If I understand right, you to go from A (your machine) to C throught B.
So you can try run this command from A.
ssh -A -t ServerB ssh -A -t serverC
If like the thinks more easy and transparent, you can configure ssh ProxyCommand.