When I connect to both hosts in separate (ssh hosta or ssh hostb), everything is working just fine.
But when I try to use some host as a gateway, for example ssh hostb/hosta — it uses my local usernameuser to connect to hostb, not hostbuser as specified in config!
If I manually specify user, like ssh hostbuser@hostb/hosta — this works.
Maybe I'm missing something, but I cannot find what... I have simple config like this
My local machine user, let's say, called
user
When I connect to both hosts in separate (
ssh hosta
orssh hostb
), everything is working just fine.But when I try to use some host as a gateway, for example
ssh hostb/hosta
— it uses my local usernameuser
to connect tohostb
, nothostbuser
as specified in config!If I manually specify user, like
ssh hostbuser@hostb/hosta
— this works.