| 场景 | 安全整改、扫描报告修复 |
|---|---|
| 适用 | 全部设备(命令随版本略有差异) |
| 命令族 | compatible-ssh1x / ip ssh version / ssh server version |
华为 VRP
华为 VRP
[Huawei] undo ssh server compatible-ssh1x enable
! 保持 SSHv1 兼容关闭;新版本另有 ssh server cipher / hmac 算法选择命令思科 IOS
思科 IOS
SW-CORE-01(config)# ip ssh version 2
SW-CORE-01(config)# ip ssh server algorithm encryption aes256-ctr aes192-ctr
SW-CORE-01(config)# ip ssh server algorithm mac hmac-sha2-256
! 版本与算法按平台能力取舍H3C Comware
H3C Comware
[H3C] ssh server version 2.0
[H3C] ssh2 algorithm cipher aes256-ctr aes128-ctr
[H3C] ssh2 algorithm mac hmac-sha2-256共同点是把协议锁到 v2 并禁用 3DES/SHA1;差异在命令形态:华为是开关式(compatible-ssh1x)、思科与 H3C 可枚举算法清单。