Skip to content

How to disable sshd weak algorithms? #1527

Closed

Description

@andylhz-mojie

as title? or this new version is already resolved?
Disable MD5 and 96-bit MAC algorithms as follow:
hmac-md5
hmac-md5-96
hmac-sha1-96

Disable CBC mode cipher encryption as follow, and enable CTR or GCM cipher mode encryption.
3des-cbc
aes128-cbc
aes192-cbc
aes256-cbc
blowfish-cbc

Activity

  1. ploxiln commented on Nov 19, 2019

    @ploxiln
    Contributor

    If you are using the Transport class directly, you can call Transport.get_security_options() to get a SecurityOptions object on which you can get and then set lists of allowed ciphers, macs, etc.

    If you are using the SSHClient class, you can't do that, but paramiko very recently added the disabled_algorithm kwarg to SSHClient.connect() (though it is actually documented under Transport.init())

  2. bitprophet commented on May 13, 2022

    @bitprophet
    Member

    See #2054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions