Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple sed patcher
sed -i -f - /etc/ssh/sshd_config <<EOF
i # this content comes from the %{name}-%{version}-%{release} package
i AddressFamily inet
i Protocol 2
i LogLevel VERBOSE
i HostbasedAuthentication yes
i IgnoreUserKnownHosts yes
i IgnoreRhosts yes
i Banner /etc/ssh/banner.txt
i # end of content from the %{name}-%{version}-%{release} package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.