ssh简单应用配置解析

发布于:2022-12-13 ⋅ 阅读:(443) ⋅ 点赞:(0)

Info: Current terminal monitor is off.
<Huawei>sy
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[Huawei-GigabitEthernet0/0/0]q    
[Huawei]stelnet server enable    开启服务
Info: Succeeded in starting the STELNET server.
[Huawei]sy r1                             改名
[r1]aaa                                       进入aaa模式    
[r1-aaa]local-user xx password cipher 123          设置验证密码
Info: Add a new user.    
[r1-aaa]local-user xx service-type ssh                  设置服务类型为ssh    
[r1-aaa]local-user xx privilege level 15                 给定最高权限为15    
[r1-aaa]q
[r1]user-interface vty 0 4                                      进入虚拟终端
[r1-ui-vty0-4]authentication-mode aaa                设置口令模式    
[r1-ui-vty0-4]protocol inbound ssh
[r1-ui-vty0-4]q    
[r1]ssh user xx authentication-type password         设置ssh认证类型为password
 Authentication type setted, and will be in effect next time
[r1]


[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[Huawei]sy R2
[R2]SSH client first-time enable                 开启SSH用户端首次认证功能
[R2]stelnet 12.1.1.1                                    在系统视图下远程r1


网站公告

今日签到

点亮在社区的每一天
去签到