华为交换机配置SSH登陆步骤
步骤一:生成本地密钥对:
rsa local-key-pair create
1024
步骤二:配置VTY用户界面:
user-interface vty 0 4 *进入端口
authentication-mode aaa *配置登陆验证模式
protocol inbound ssh *配置登陆类型
步骤三:创建SSH用户及密码
aaa
local-user root password cipher root@12345 *配置登陆用户
local-user root privilege level 15 *配置用户权限
local-user root service-type ssh *配置用户登录方式
步骤四:配置SSH用户的验证方式和服务方式
ssh user root authentication-type password(或者 ssh authentication-type default password)
ssh user root service-type stelnet
步骤五:启用SSH服务
stelnet server enable
***********************设置交换机管理IP*****************************
interface Vlanif10
ip address 192.168.10.254 24 *配置管理IP
ip route-static 0.0.0.0 0.0.0.0 192.168.10.1 *给交换机管理IP配置默认网关
***********************限制管理主机IP*****************************
acl number 2000
rule 5 permit source 192.168.0.67
rule 10 deny
user-interface vty 0 4
acl 2000 inbound