1.路径
/etc/ssh/sshd_config
2.在文件底部添加
Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes256-cbc
3. 查看
[root@zdzzk]# sshd -T |grep ciphers //命令方式:输出如下
ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,aes256-cbc
2)查看linux服务器上支持的ssh对称秘钥:
ssh -Q cipher //输出如下
3des-cbc
aes128-cbc
aes192-cbc
aes256-cbc
rijndael-cbc@lysator.liu.se
aes128-ctr
aes192-ctr
aes256-ctr
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
3)查看支持身份验证加密的对称秘钥
ssh -Q cipher-auth //输出如下
aes128-gcm@openssh.com
aes256-gcm@openssh.com
chacha20-poly1305@openssh.com
4)查看支持的消息完整性秘钥
ssh -Q mac //输出如下
hmac-sha1
hmac-sha1-96
hmac-sha2-256
hmac-sha2-512
hmac-md5
hmac-md5-96
umac-64@openssh.com
umac-128@openssh.com
hmac-sha1-etm@openssh.com
hmac-sha1-96-etm@openssh.com
hmac-sha2-256-etm@openssh.com
hmac-sha2-512-etm@openssh.com
hmac-md5-etm@openssh.com
hmac-md5-96-etm@openssh.com
umac-64-etm@openssh.com
umac-128-etm@openssh.com