通过SSH远程登录华为设备

01 进入系统编辑视图

system-view

Enter system view, return user view with return command.

02 创建本地RSA密钥对

HUAWEI\]rsa 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-4\]authentication-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-4\]protocol inbound all \[HUAWEI-ui-vty0-4\]commit 04 创建SSH用户xxx \[HUAWEI-ui-vty0-4\]ssh user abc01 Info: Succeeded in adding a new SSH user. \[HUAWEI\]ssh user abc01 authentication-type password 05 在AAA视图下创建同名的local-user用户 \[HUAWEI\]aaa \[HUAWEI-aaa\]local-user abc01 password cipher \*\*\*\*\*\*\*\* Info: A new user is added \[HUAWEI-aaa\]local-user abc01 service-type ssh Info: The user josen01's password has been changed to be irreversible. \[HUAWEI-aaa\]local-user abc01 level 3 \[HUAWEI-aaa\]q 06 配置SSH用户的服务方式 \[HUAWEI\]ssh user abc01 service-type all 若该步骤不做,可能会导致ssh连接时报shell request failed on channel 0错误 07 使能ssh服务 \[HUAWEI\]stelnet server enable Info: Succeeded in starting the STelnet server. 08 提交保存 \[HUAWEI\]commit \[HUAWEI

相关推荐
saber_andlibert5 分钟前
TCMalloc底层实现
java·前端·网络
飞凌嵌入式2 小时前
用「EN 18031认证」通关欧盟,这张 “网络安全护照” 已就位
网络·安全·能源
Trouvaille ~2 小时前
TCP Socket编程实战(三):线程池优化与TCP编程最佳实践
linux·运维·服务器·网络·c++·网络协议·tcp/ip
小哥Mark2 小时前
Flutter开发鸿蒙年味 + 实用实战应用|绿色烟花:电子烟花 + 手持烟花
flutter·华为·harmonyos
小镇敲码人2 小时前
剖析CANN框架中Samples仓库:从示例到实战的AI开发指南
c++·人工智能·python·华为·acl·cann
JoySSLLian3 小时前
手把手教你安装免费SSL证书(附宝塔/Nginx/Apache配置教程)
网络·人工智能·网络协议·tcp/ip·nginx·apache·ssl
Zach_yuan3 小时前
自定义协议:实现网络计算器
linux·服务器·开发语言·网络
猫头虎4 小时前
如何解决 OpenClaw “Pairing required” 报错:两种官方解决方案详解
网络·windows·网络协议·macos·智能路由器·pip·scipy
盐焗西兰花4 小时前
鸿蒙学习实战之路-Reader Kit自定义字体最佳实践
学习·华为·harmonyos
_waylau4 小时前
鸿蒙架构师修炼之道-架构师的职责是什么?
开发语言·华为·harmonyos·鸿蒙