I have an ssh config file with something like this that I am not understanding.
Host my_alias HostName email@example.com HostName %h ProxyCommand ssh -W %h:%p me2.myserver.com
I thought %h stood for Hostname. What is the meaning of
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You would typically use
Hostname %h like
Host my-* Hostname %h.site.dom
which would expand any host starting with
my-test) to the FQDN (e.g.
Hostname %h on it's own won't do anything.
As you also define
HostName firstname.lastname@example.org first (and ssh_config says "For each parameter, the first obtained value will be used.") the entry will be ignored.