-
Notifications
You must be signed in to change notification settings - Fork 613
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
enable GCM and Chacha20 ciphers #192
Conversation
Thank you! I do have two requests, still, before merging time:
|
Good point. I can do this, but if a user modifies /etc/ssh/ssh_config, then we may overwrite their modifications too. I think the right way is to patch the openssh package instead. Since we already have some patches there, that's no extra maintenance overhead. I created a pull request there: The only downside is that due to the modification by git-extra, the new ssh_config will be installed as /etc/ssh/ssh_config.new with a warning. |
That's not the only downside. It would make it quite a bit harder to revert the supposedly temporary workaround of re-enabling weak ciphers to accommodate a few hosters (all of which have updated their SSH to handle strong ciphers in the meantime AFAICT). |
7d88276
to
c33fb6e
Compare
git-extra/git-extra.install
Outdated
{ | ||
# Revert change by prior versions of git-extra. | ||
sed -i -e 's/^Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes256-cbc,aes192-cbc$/# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc/' \ | ||
/etc/ssh/ssh_config |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
git-extra/git-extra.install
Outdated
grep -q '^Ciphers .*aes256-cbc,aes192-cbc' /etc/ssh/ssh_config || | ||
sed -i -e '/^[# ]*Ciphers /{s/^# *//;s/$/,aes256-cbc,aes192-cbc/}' \ | ||
/etc/ssh/ssh_config | ||
{ |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
These are offered by ssh by default, but they are not included in the default list of Ciphers in ssh_config. Instead of setting the entire list of ciphers, selectively re-enable the CBC ciphers using the "Cipher +somecipher" notation. Closes git-for-windows/git#1723. Signed-off-by: Clemens Buchacher <[email protected]>
c33fb6e
to
3cadc4c
Compare
Thank you, @drizzd! |
The included OpenSSH client [now enables modern ciphers](#192). Signed-off-by: Johannes Schindelin <[email protected]>
These are offered by ssh by default, but they are not included in the
default list of Ciphers in ssh_config.
Instead of setting the entire list of ciphers, selectively re-enable the
CBC ciphers using the "Cipher +somecipher" notation.
Closes git-for-windows/git#1723.