Patterns in HostName ?

Nick Dokos nicholas.dokos at hp.com
Tue Jan 24 04:16:25 EST 2012


Stephen Harris <lists at spuddy.org> wrote:

> 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
> 

Works for me in

OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010

Maybe trying 'ssh -v a.lab' will give you a hint of where it's going wrong?

Nick



More information about the openssh-unix-dev mailing list