Patterns in HostName ?

Stephen Harris lists at spuddy.org
Tue Jan 24 04:02:25 EST 2012


On Mon, Jan 23, 2012 at 06:00:43PM +0100, ?ngel Gonz?lez wrote:
> On 23/01/12 16:46, Stephen Harris wrote:

> >Is it possible to do something like
> >   Host *.lab
> >     Hostname %h.sub.domain.example.com
> >
> >so if I "ssh host1.lab" then it'll go to 
> >"host1.lab.sub.domain.example.com" ?
> It should work fine

In what version of OpenSSH?
  % ssh a.lab
  ssh: %h.sub.domain.example.com: Name or service not known

-- 

rgds
Stephen


More information about the openssh-unix-dev mailing list