当前位置:网站首页>华为交换机配置ssh登录远程管理交换机
华为交换机配置ssh登录远程管理交换机
2022-07-03 07:41:00 【鹿鸣天涯】
配置华为交换机ssh远程登录,先配置交换机的管理地址和vlan,此处为vlan10 ,把接口GE0/0/1划入vlan10,管理地址为192.168.10.100/241、创建本地密钥对
配置接入交换机ssh
一、配置管理地址和接口vlan
[SW1]vlan 10
[SW1]interface vlan 10
[SW1-Vlanif10]ip address 192.168.10.100 24
[SW1]interface GigabitEthernet 0/0/1
[SW1-GigabitEthernet0/0/1]port link-type access
[SW1-GigabitEthernet0/0/1]port default vlan 10
二、开启stelnet权限
[SW1]stelnet server enable
三、创建本地密钥对
[SW1]rsa local-key-pair create
四、创建ssh用户名为user
[SW1]ssh user user //创建用户
[SW1]ssh user user authentication-type password //创建用户认证为密码认证
[SW1]ssh user user service-type stelnet //服务类型为ssh
五、进入aaa模式下配置用户
[SW1]aaa //进入aaa模式
[SW1-aaa]local-user user password cipher user123 //配置用户密码为user123
[SW1-aaa]local-user user privilege level 15 //配置用户权限级别
[SW1-aaa]local-user user service-type ssh //允许用户ssh访问权限
六、配置vty界面支持的登录协议
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]authentication-mode aaa //认证为aaa
[SW1-ui-vty0-4]protocol inbound ssh //登录协议为ssh登入
七、登录ssh管理
通过xshell等工具登录
配置核心交换机ssh
1、创建本地密钥对
[Core-SW]rsa local-key-pair create
The key name will be: Core-SW_Host
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
it will take a few minutes.
Input the bits in the modulus[default = 2048]:
Generating keys...
..+++++
........................++
....++++
...........++
2、检查是否存在SSH user(可跳过),系统提示没有SSH user 存在
[Core-SW]dis ssh user-information
Info: No SSH user exists.
3、创建SSH user
[Core-SW]ssh user test \可以直接敲第二行命令
[Core-SW]ssh user test authentication-type password \认证模式为密码认证
[Core-SW]ssh user test service-type stelnet \服务类型为stelnet,即SSH
4、创建用户
[Core-SW]aaa
[Core-SW-aaa]local-user test password cipher xxx(xxx处为你想要设置的密码)
Info: Add a new user.
[Core-SW-aaa]local-user test privilege level 3 \用户level最高到15
[Core-SW-aaa]local-user test service-type ?
8021x 802.1x user
bind Bind authentication user
ftp FTP user
http Http user
ppp PPP user
ssh SSH user
telnet Telnet user
terminal Terminal user
web Web authentication user
x25-pad X25-pad user
[Core-SW-aaa]local-user test service-type ssh \开启该用户允许使用SSH访问设备的权限
5、启用SSH(stelnet)服务
[Core-SW]stelnet server enable
Info: Succeeded in starting the Stelnet server.
6、配置vty界面支持的登录协议
[Core-SW]user-interface vty 0 4
[Core-SW-ui-vty0-4]authentication-mode aaa
[Core-SW-ui-vty0-4]protocol inbound ssh
边栏推荐
- Implementation of breadth first in aggregation in ES
- Inverted chain disk storage in Lucene (pfordelta)
- 【LeetCode】2. Valid Parentheses·有效的括号
- 圖像識別與檢測--筆記
- Common architectures of IO streams
- PAT甲级 1030 Travel Plan
- Read config configuration file of vertx
- Hnsw introduction and some reference articles in lucene9
- Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
- Go language foundation ------ 14 ------ gotest
猜你喜欢

Lucene hnsw merge optimization

Technical dry goods Shengsi mindspire elementary course online: from basic concepts to practical operation, 1 hour to start!

Go language foundation ----- 07 ----- method

Go language foundation ----- 01 ----- go language features

Analysis of the problems of the 10th Blue Bridge Cup single chip microcomputer provincial competition

截图工具Snipaste

Analysis of the ninth Blue Bridge Cup single chip microcomputer provincial competition

FileInputStream and fileoutputstream

Use of other streams

【踩坑系列】mysql 修改root密码失败
随机推荐
opensips与对方tls sip trunk对接注意事项
Lombok -- simplify code
Lucene introduces NFA
Logging log configuration of vertx
Grpc message sending of vertx
Leetcode 198: 打家劫舍
截图工具Snipaste
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
lucene scorer
FileInputStream and fileoutputstream
Go language foundation ----- 10 ----- string related operations (operation function, string conversion)
技术干货|昇思MindSpore可变序列长度的动态Transformer已发布!
Leetcode 198: house raiding
Use of generics
Pgadmin 4 v6.11 release, PostgreSQL open source graphical management tool
Technical dry goods Shengsi mindspire innovation model EPP mvsnet high-precision and efficient 3D reconstruction
项目经验分享:基于昇思MindSpore实现手写汉字识别
Unified handling and interception of exception exceptions of vertx
[mindspire paper presentation] summary of training skills in AAAI long tail problem
你开发数据API最快多长时间?我1分钟就足够了