access remote host aliases with proxyjump

Damien Miller djm at mindrot.org
Thu Aug 8 13:22:55 AEST 2019


On Tue, 6 Aug 2019, Chentao Credungtao wrote:

> Hi,
> 
> I think it would be a good idea to allow the use of remote host aliases when
> using ProxyJump (or maybe it's already doable and there's something I don't
> get ?)

It's definitely possible and your configuration is very close to working.

> On my laptop I have the following config, which works fine :
> 
> Host bastion
>     Hostname bast.example.net
>     User john
> 
> Host somehost
>     ProxyJump bastion
>     Hostname yellowstone.example.local
>     Port 15200
>     User john
> 
> 
> Now, on bastion I have already defined the following alias :

This is where you went wrong. Put this block on your laptop - the
configuration on the jump host is never evaluated, basically all
the action happens on the initiating host.

> Host somealias
>     Hostname yellowstone.example.local
>     Port 15200
>     User john


More information about the openssh-unix-dev mailing list