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
Next revision
Previous revision
augeas [2015/10/20 12:37]
ian [Load a File with A Specific Lens]
augeas [2020/02/13 22:55] (current)
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.1445359036.txt.gz ยท Last modified: 2020/02/13 22:55 (external edit)

free spam filter