hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

ssh "Match LocalPort": Augeas didn't load input #235

Closed MelanieGault closed 9 years ago

MelanieGault commented 9 years ago

Hi,

I have a simple ssh conf:

AuthorizedKeysFile      .ssh/authorized_keys
Subsystem       sftp    /usr/libexec/openssh/sftp-server

Port 22
Port 6875
Match LocalPort 6875
   AllowUsers localise
   PermitRootLogin no
   PasswordAuthentication no
   PubkeyAuthentication yes

I try to puppetize with hercules-team/augeasproviders_ssh puppet module. I have errors on line 6:

 Could not evaluate: Augeas didn't load /etc/ssh/sshd_config with Sshd.lns from /var/opt/lib/pe-puppet/lib/augeas/lenses: Get did not match entire input (line:6, character:0)

Is 'Match LocalPort' supported ? I don't really know augeas, but is there anything I can do to help havig this working ?

Thanks ! Mélanie.

(nearly same ticket submited in hercules-team/augeasproviders_ssh first https://github.com/hercules-team/augeasproviders_ssh/issues/10)

raphink commented 9 years ago

Hi,

This was reported by https://github.com/hercules-team/augeas/issues/75 and fixed as https://github.com/hercules-team/augeas/commit/1b299d58bbebd6551412bd721838e9e582a81a07.

The fix was released as part of Augeas 1.3.0.

MelanieGault commented 9 years ago

Hi,

thanks. I did not find this one...

Sorry for duplicating !