Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-extra: disable CBC ciphers in ssh_config again #421

Merged
merged 1 commit into from
Jun 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions git-extra/git-extra.install.in
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,9 @@ test -d "$TMPDIR" || test ! -d "$TMP" || {\
! grep -q '^Ciphers [a-z].*cbc' /etc/ssh/ssh_config ||
sed -i -e 's/^Ciphers [a-z].*cbc/# &/' /etc/ssh/ssh_config

grep -q '^Ciphers\s\++' /etc/ssh/ssh_config ||
printf '%s\n%s\n' \
'# Added by git-extra' \
'Ciphers +aes128-cbc,3des-cbc,aes256-cbc,aes192-cbc' \
>>/etc/ssh/ssh_config
# Revert change by prior versions of git-extra.
! grep -q '^Ciphers\s\++' /etc/ssh/ssh_config ||
sed -i -e '/^# Added by git-extra/{N;/^\(.*\n\)\?Ciphers +[a-z].*cbc/d}' /etc/ssh/ssh_config

grep -q '^Host\s\+ssh\.dev\.azure\.com' /etc/ssh/ssh_config ||
printf '%s\n%s\n\t%s\n\t%s\n' \
Expand Down