Re: What is the ssh_config equivalent to this syntax involving multiple at signs

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Thu, 28 Dec 2017, Garbage@xxxxxx wrote:

> 
> 
> I tried
>  
> Host targethost
>   User myuser@technicaluser@targethost
>   Hostname jumphost
> 
> and it worked. Thanks a lot !
>
> Unfortunately this doesn't yet solve my problems with Ansible but
> this is a different story. But one problem remains: I have lots of
> targethosts and I would better write something like "Host *.servers",
> the asterisk stands for all the targethost1 through targethost9999.
> But the targethost has to be part of the User setting. How can I use
> the wildcard ?

You can't at the moment, as there is no way to copy the hostname into
the username. Your best bet would be to write a shell script wrapper...

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux