码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 华为设备SSH远程访问配置实验简述


    一、实验需求:
    1、AR1模拟电脑SSH 访问AR2路由器。

    二、实验步骤:
    1、AR1和AR2接口配置IP,实现链路通信。
    2、AR2配置AAA模式
    配置用户及密码
    配置用户访问级别
    配置用户SSH 访问服务
    AR2配置远程服务数量
    配置用户远程访问模式为AAA
    配置允许登录接入用户类型的协议为SSH。
    3、AR1 Stelnet AR2,实验成功

    三、实验图例
    在这里插入图片描述

    四、AR1命令
    AR1:

    sys
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sysname AR1

    [AR1]int g0/0/0
    [AR1-GigabitEthernet0/0/0]ip add 12.0.0.1 24
    [AR1-GigabitEthernet0/0/0]quit

    [AR1]stelnet 12.0.0.2
    Please input the username:yao
    Trying 12.0.0.2 …
    Press CTRL+K to abort
    Connected to 12.0.0.2 …
    Error: Failed to verify the server’s public key.
    Please run the command "ssh client first-time enable"to enable the first-time ac
    cess function and try again.

    [AR1]ssh client first-time enable

    [AR1]stelnet 12.0.0.2
    Please input the username:yao
    Trying 12.0.0.2 …
    Press CTRL+K to abort
    Connected to 12.0.0.2 …
    Enter password:
    User last login information:
    Access Type: SSH
    IP-Address : 12.0.0.1 ssh
    Time : 2024-06-20 21:09:18-08:00

    五、AR2命令
    AR2:
    sys
    Enter system view, return user view with Ctrl+Z.
    [Huawei]sysname AR2
    [AR2]int g0/0/1
    [AR2-GigabitEthernet0/0/1]ip add 12.0.0.2 24

    [AR2]stelnet server enable
    Info: Succeeded in starting the STELNET server.
    [AR2]aaa
    [AR2-aaa]local-user yao password cipher a1234567
    Info: Add a new user.
    [AR2-aaa]local-user yao privilege level 15

    [AR2-aaa]local-user yao service-type ssh
    [AR2-aaa]quit

    [AR2]user-interface vty 0 4

    [AR2-ui-vty0-4]authentication-mode aaa

    [AR2-ui-vty0-4]protocol inbound ssh
    [AR2-ui-vty0-4]quit
    [AR2]quit
    save
    The current configuration will be written to the device.
    Are you sure to continue? (y/n)[n]:y
    It will take several minutes to save configuration file, please wait…
    Configuration file had been saved successfully
    Note: The configuration file will take effect after being activated

  • 相关阅读:
    任正非说:段到段而不是端到端的变革,一定会局部优秀了,而全局灾难了。
    SpringMvc(一)-初识
    App备案-iOS云管理式证书 Distribution Managed 公钥及证书SHA-1指纹的获取方法
    CSS-0_2 CSS和继承(inherit & initial)
    【全民编程】《软件编程-讲课视频》【零基础入门到实战应用】
    如何封装安全的go
    FPGA之旅设计99例之第十一例-----OLED显示字符
    0825(039天 集合框架04 队列、集合)
    26岁月薪从7k到17K,这一切都要从那年失业讲起...
    [Python]图片转字符画——这就是我的表情!!!!!!
  • 原文地址:https://blog.csdn.net/weixin_42185241/article/details/139843075
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号