通过SSH远程登录华为设备

01 进入系统编辑视图

system-view

Enter system view, return user view with return command.

02 创建本地RSA密钥对

HUAWEIrsa local-key-pair creat

The key name will be:HUAWEI_Host

The range of public key size is (2048 ~ 2048).

NOTE: Key pair generation will take a short while.

03 配置vty界面支持的登录协议

HUAWEI user-interface vty 0 4

HUAWEI-ui-vty0-4authentication-mode aaa

Warning: The level of the user-interface(s) will be the default level of AAA users, please check whether it is correct. After the authentication mode is set to AAA, you need to enter the user name and password to log in.

HUAWEI-ui-vty0-4protocol inbound all

HUAWEI-ui-vty0-4commit

04 创建SSH用户xxx

HUAWEI-ui-vty0-4ssh user abc01

Info: Succeeded in adding a new SSH user.

HUAWEIssh user abc01 authentication-type password

05 在AAA视图下创建同名的local-user用户

HUAWEIaaa

HUAWEI-aaalocal-user abc01 password cipher ********

Info: A new user is added

HUAWEI-aaalocal-user abc01 service-type ssh

Info: The user josen01's password has been changed to be irreversible.

HUAWEI-aaalocal-user abc01 level 3

HUAWEI-aaaq

06 配置SSH用户的服务方式

HUAWEIssh user abc01 service-type all

若该步骤不做,可能会导致ssh连接时报shell request failed on channel 0错误

07 使能ssh服务

HUAWEIstelnet server enable

Info: Succeeded in starting the STelnet server.

08 提交保存

HUAWEIcommit

HUAWEI

相关推荐
袖手蹲8 分钟前
K10 百炼 AI 语音助手从网络配置到全链路语音交互的嵌入式实战
网络·人工智能·交互
liulilittle9 分钟前
KCC: An Exploration Along the Lines of BBR
网络·tcp/ip·计算机网络·bbr·通信·拥塞控制·kcc
星野爱89515 分钟前
云顶之弈7周年新版本!手机随时随地畅玩周年时光机派对
网络·智能手机·电脑
AI科技星21 分钟前
第六卷:量天尺传奇(几何学)
网络·人工智能·算法·概率论·学习方法·几何学·拓扑学
酉鬼女又兒25 分钟前
零基础入门IPv4地址:从基本概念、分类编址、子网划分到无分类编址与应用规划全解
网络·网络协议·计算机网络·考研·职场和发展·分类·智能路由器
未来侦察班30 分钟前
网络协议 数据链路层,“帧”建立统一新秩序
网络·网络协议
ICT系统集成阿祥41 分钟前
校园网络准入认证建设与运维经验
运维·网络·智慧校园·经验总结
浮芷.1 小时前
鸿蒙 6.1 新特性-60fps流畅人物跳跃功能算法深度解析-鸿蒙PC端正弦值计算法
算法·华为·harmonyos·鸿蒙·鸿蒙系统
liulilittle1 小时前
甲骨文云中国大陆定向 QoS 原理及绕过解决方案
服务器·开发语言·网络·计算机网络·oracle·通信·qos
行走__Wz1 小时前
【网工入门-eNSP模拟-02】dhcp动态主机配置ip地址
服务器·网络·tcp/ip