ssh(1) doesn't seem to resolve a ProxyJump hostname using /etc/hosts when the
hostname is a fqdn.


I can repeat it correctly with the following cases:

Using a hostname which is not a fqdn, /etc/hosts is correctly read

~/.ssh/config

Host perso.pw
ProxyJump foobar

/etc/hosts contains
127.0.0.1 foobar

using ssh perso.pw will proxyjump on 127.0.0.1 correctly.

If I use a fqdn in my proxyjump, /etc/hosts doesn't seem to be read

Host perso.pw
ProxyJump google.fr

and /etc/hosts contains
127.0.0.1 google.fr

ssh will connect to google.fr IP


I use that case when I move to my workplace, I would like to uncomment an entry
in /etc/hosts to override the destination of all my proxyjump

Reply via email to