SSH and domain wildcards.

Ian Kelling iank at fsf.org
Wed Nov 6 18:01:45 EST 2019


Ken D'Ambrosio <ken at jots.org> writes:

> OK.  Feeling kinda dumb.  So!
>
> ===========================
> $ head -6 ~/.ssh/config
> Compression yes
> ForwardX11 yes
> User kdambrosio
>
> Host *.foo.com
>    User ken
> ===========================
> So I've got kdambrosio (my work username) as my default, however, when I 
> try to log into bar.foo.com, it's not using "ken", it's using 
> "kdambrosio".  Can someone show me where I'm screwing up?
>
> Thank you kindly,
>
> -Ken

Ya. Do this:

Compression yes
ForwardX11 yes

Host *.foo.com
User ken

Host *
User kdambrosio

-- 
Ian Kelling | Senior Systems Administrator, Free Software Foundation
GPG Key: B125 F60B 7B28 7FF6 A2B7  DF8F 170A F0E2 9542 95DF
https://fsf.org | https://gnu.org


More information about the gnhlug-discuss mailing list