When connecting from A to C, through B, how can I specify PEM on B?

I am trying to connect to server C, through B. How can I provide the key for B?

i.e:

ssh -J [email protected]:22[<-need to use PEM on B] [email protected]

sshtunnel's terminal is set to /bin/true - so I can authenticate, not login.


Create a file ~/.ssh/config with the content:

host 10.0.0.146
  HostName hostb
  IdentifyFile ~/.ssh/id_rsa_hostb.pub
  User sshtunnel

Now you can use:

ssh -J 10.0.0.146 [email protected]