I read several versions of this question and try to implement them but they did not work so I want to ask my problem with specific details.
Host A: Local Computer
Host B: Intermediate computer ( I can access from my local with using a public key, foo.key
Host C: Final Computer ( I can access it from Host B)
I followed commands like:
ssh -J user@hostA.com user@hostB.com
But where to put key?
When I try something like:
ssh -i foo.key -J user@hostA.com user@hostB.com
It gives error too.