$ cat /etc/ssh/ssh_config# This file was generated by Chef for host# Do NOT modify this file by hand!Host *Host fooPubkeyAuthentication noHostKeyAlgorithms ssh-dssHost barHostKeyAlgorithms ssh-dssGlobalKnownHostsFile /var/lib/sss/pubconf/known_hostsPubkeyAuthentication yesVerifyHostKeyDNS no#VerifyHostKeyDNS:No-SonstIstEsZuLangsam noHostKeyAlgorithms ssh-rsa,ssh-dssProxyCommand /usr/bin/sss_ssh_knownhostsproxy -p %p %h
default['openssh']['client']['foo'] = {'pubkey_authentication' => 'no','host_key_algorithms' => 'ssh-dss'}default['openssh']['client']['bar'] = {'host_key_algorithms' => 'ssh-dss'}default['openssh']['client']['global_known_hosts_file'] = '/var/lib/sss/pubconf/known_hosts'default['openssh']['client']['pubkey_authentication'] = 'yes'default['openssh']['client']['verify_host_key_d_n_s'] = 'no'default['openssh']['client']['#_verify_host_key_d_n_s_:_no_-_sonst_ist_es_zu_langsam'] = 'no'default['openssh']['client']['host_key_algorithms'] = 'ssh-rsa,ssh-dss'default['openssh']['client']['proxy_command'] = '/usr/bin/sss_ssh_knownhostsproxy -p %p %h'#default['openssh']['client']['*'] = {}# EOF
HelloIn the openssh Cookbook from Supermarket @ supermarket.chef.io/cookbooks/openssh, the attributes file for the "client section" contains this:
default['openssh']['client']['host'] = '*' Short question: How do I get rid of this, without having to modify the openssh/attributes/default.rb file; ie. from my own cookbook, which has a "include_recipe "openssh"" somewhere.Because of that, the generated /etc/ssh/ssh_config file contains at least this:$ cat /etc/ssh/ssh_config# This file was generated by Chef for host# Do NOT modify this file by hand!Host *Ie., there's at least a "Host *" entry. And the way I have it now, all my attributes are below that; ie. my ssh_config file reads:$ cat /etc/ssh/ssh_config# This file was generated by Chef for host# Do NOT modify this file by hand!Host *GlobalKnownHostsFile /var/lib/sss/pubconf/known_hostsPubkeyAuthentication yesVerifyHostKeyDNS no#VerifyHostKeyDNS:No-SonstIstEsZuLangsam noHostKeyAlgorithms ssh-rsa,ssh-dssProxyCommand /usr/bin/sss_ssh_knownhostsproxy -p %p %hThat's not quite what I want. I don't want that "Host *" line there.Thanks a lot,Alexander -- => Google+ => http://plus.skwar.me <== => Chat (Jabber/Google Talk) => " target="_blank"> <==
Alexander -- => Google+ => http://plus.skwar.me <== => Chat (Jabber/Google Talk) => " target="_blank"> <==
Archive powered by MHonArc 2.6.16.