User Tools

Site Tools


augeas

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
augeas [2015/10/20 12:37]
ian [Load a File with A Specific Lens]
augeas [2015/10/20 12:38]
ian [Uncomment a Line]
Line 5: Line 5:
 <code> <code>
 augtool --backup <<END augtool --backup <<END
-rename /files/etc/ssh/sshd_config/#comment[.="PermitRootLogin yes"] PermitRootLogin+rename /files/etc/ssh/sshd_config/#comment[. =~ regexp('PermitRootLogin.*')] PermitRootLogin
 set /files/etc/ssh/sshd_config/PermitRootLogin without-password set /files/etc/ssh/sshd_config/PermitRootLogin without-password
 save save
augeas.txt ยท Last modified: 2020/02/13 22:55 (external edit)

free spam filter