Skip to content

Instantly share code, notes, and snippets.

/output Secret

Created February 23, 2014 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b21cd7000043e8048147 to your computer and use it in GitHub Desktop.
Save anonymous/b21cd7000043e8048147 to your computer and use it in GitHub Desktop.
sed -i '/system {/ i
service {\n
\ ssh {\n
\ disable-password-authentication\n
\ port 22\n
\ }\n
}
' file
service {
ssh {
disable-password-authentication
port 22
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment