GNU/Linux >> Linux の 問題 >  >> Linux

SSH の MD5 ベースの HMAC アルゴリズムを無効にする方法

これは、Linux で ssh の MD5 ベースの HMAC アルゴリズムを無効にする方法に関する短い投稿です。

1. openssh パッケージを利用可能な最新バージョンに更新したことを確認してください。

2. 使用中の ciphers/md5 を変更するには、sshd_config ファイルを変更する必要があります。man ページに従って、暗号化と MAC をオプションで追加できます。例:

# vi /etc/ssh/sshd_config
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,arcfour
MACs hmac-sha1,[email protected],hmac-ripemd160,hmac-sha2-256,hmac-sha2-512,[email protected]

sshd_config の man ページから:

# man sshd_config

     Ciphers
             Specifies the ciphers allowed for protocol version 2.  Multiple ciphers must be comma-separated.  The supported ciphers are
             “3des-cbc”, “aes128-cbc”, “aes192-cbc”, “aes256-cbc”, “aes128-ctr”, “aes192-ctr”, “aes256-ctr”, “arcfour128”, “arcfour256”,
             “arcfour”, “blowfish-cbc”, “[email protected]”, and “cast128-cbc”.  The default is:

                aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
                aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
                aes256-cbc,arcfour,[email protected]

     MACs    Specifies the available MAC (message authentication code) algorithms.  The MAC algorithm is used in protocol version 2 for data
             integrity protection.  Multiple algorithms must be comma-separated.  The default is:

                   hmac-md5,hmac-sha1,[email protected],
                   hmac-ripemd160,hmac-sha1-96,hmac-md5-96,
                   hmac-sha2-256,hmac-sha2-512,[email protected]

3. sshd サービスを再起動します。

# service sshd restart       ### For CentOS/RHEL 6
# systemctl restart sshd     ### For CentOS/RHEL 7


Linux
  1. Linux –非特権ユーザーのシステムビープ音を無効にする方法は?

  2. Ssh:弱い暗号を無効にする方法は?

  3. 複数のウィンドウのパスワードを入力する方法は?

  1. 単一のコマンドに対してBashでエイリアスを無効にする方法は??

  2. SshとGpgのキーリングを無効にする方法は?

  3. パスワードでSSHログインを無効にする方法

  1. SSH経由でrootユーザーのログインを無効にする方法

  2. CentOS/RHEL 6 および 7 の SSH サービスで弱い暗号と安全でない HMAC アルゴリズムを無効にする方法

  3. 一部のユーザーのパスワードを使用した SSH ログインを無効にする方法は?