SSH and domain wildcards.

Joshua Judson Rosen rozzin at hackerposse.com
Wed Nov 6 23:35:26 EST 2019


i.e.: you just got the order backward :)

FYI the ssh_config man page does say:

     Since the first obtained value for each parameter is used, more host-spe‐
     cific declarations should be given near the beginning of the file, and
     general defaults at the end.


On 11/6/19 6:01 PM, Ian Kelling wrote:
> 
> 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
> 

-- 
Connect with me on the GNU social network! <https://status.hackerposse.com/rozzin>
Not on the network? Ask me for more info!


More information about the gnhlug-discuss mailing list