Modify

Ticket #532 (closed defect: worksforme)

Opened 14 years ago

Last modified 14 years ago

SSHBase slightly broken in OSX

Reported by: leggett@… Owned by: desai
Priority: minor Milestone:
Component: bcfg2-server Version: 0.9.x
Keywords: Cc:

Description

OSX keeps it's ssh configs in /etc not /etc/ssh/. SSHBase seems to handle this just fine for the keys, but it doesn't seem to do it correctly for /etc/ssh_known_hosts. It never seems to install a file. Here's what I have in the bundle:

  <Group name='macosx'>
    <!-- Handled by Cfg -->
    <ConfigFile name='/etc/ssh_config'/>
    <ConfigFile name='/etc/sshd_config'/>
    <!-- Handled by SSHBase -->
    <ConfigFile name='/etc/ssh_host_dsa_key'/>
    <ConfigFile name='/etc/ssh_host_dsa_key.pub'/>
    <ConfigFile name='/etc/ssh_host_rsa_key'/>
    <ConfigFile name='/etc/ssh_host_rsa_key.pub'/>
    <ConfigFile name='/etc/ssh_host_key'/>
    <ConfigFile name='/etc/ssh_host_key.pub'/>
    <ConfigFile name='/etc/ssh_known_hosts'/>
    <Service name='com.openssh.sshd'/>
  </Group>

Attachments

Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to worksforme

You can do this using altsrc; this species a different name for binding. For example:

<Group name='macosx'>
  <ConfigFile name='/etc/ssh_host_dsa_key' altsrc='/etc/ssh/ssh_host_dsa_key'/>

Will do the trick.

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.