华为SSH实验

华为SSH实验

实验拓扑:

实验要求:从SSH客户端AR1采用stelnet方式登录到SSH 服务器端。

实验步骤:

1.完成基本配置(略)

sys

Enter system view, return user view with Ctrl+Z.

AR1\]sys CLIENT \[CLIENT\]INT g0/0/0 \[CLIENT-GigabitEthernet0/0/0\]ip add 10.1.1.2 24 sys Enter system view, return user view with Ctrl+Z. \[AR4\]sys SERVER \[SERVER\]INT g0/0/0 \[SERVER-GigabitEthernet0/0/0\]ip add 10.1.1.2 24 2.在server端配置安全密钥对 \[SERVER\]rsa local-key-pair create The key name will be: Host % RSA keys defined for Host already exist. Confirm to replace them? (y/n)\[n\]:y 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 = 512\]:512 Generating keys... ...++++++++++++ ...++++++++++++ ...++++++++ ...++++++++ \[SERVER

SERVER\]dis rsa local-key-pair public 在服务器端查看刚刚配置的公钥 3.在服务器端创建VTY服务 \[SERVER\]user-interface vty 0 4 启用VTY服务 \[SERVER-ui-vty0-4\]authentication-mode aaa 认证模式采用AAA \[SERVER-ui-vty0-4\]protocol inbound ssh 定义流量(从外面进来的流量是ssh) \[SERVER-ui-vty0-4\]q 4.在服务端配置AAA服务 \[SERVER\]aaa 启用AAA服务 \[SERVER-aaa\]local-user zyh password cipher huawei 配置本地用户zyh密码是huawei \[SERVER-aaa\]local-user zyh service-type ssh 用户zyh服务类型是ssh \[SERVER-aaa\]local-user zyh privilege level 3 用户zyh的运行级别是三级 \[SERVER-aaa\]q 5.在服务端配置SSH用户的访问认证方式并启用stelnet服务 \[SERVER\]ssh user zyh authentication-type password Authentication type setted, and will be in effect next time \[SERVER\]stelnet server enable 系统默认该服务是关闭的所以使用时候需要开启 6.配置客户端 sys \[CLIENT\]ssh client first-time enable 把客户端首次使用SSH开启 7.进行测试 \[CLIENT\]stelnet 10.1.1.2 Please input the username:zyh Trying 10.1.1.2 ... Press CTRL+K to abort Connected to 10.1.1.2 ... The server is not authenticated. Continue to access it? (y/n)\[n\]:y Save the server's public key? (y/n)\[n\]:y The server's public key will be saved with the name 10.1.1.2. Please wait... Enter password: 采用SSH服务安全登录到远程服务端设备,实验成功。 小结:采用stelnet登录目标设备的配置虽有有点繁琐,但安全性却有了极大的提升,特别是密钥对的强度选择和SSH协议的配合使用,安全有了很大的保证。

相关推荐
纳切威3 分钟前
CentOS 7部署Zabbix5.0
linux·运维·centos·zabbix
sunshine-sm6 分钟前
CentOS Steam 9安装 MySQL 8
linux·运维·服务器·数据库·mysql·centos·centos stream
bug攻城狮7 分钟前
CentOS 7 快速检查软件包是否已安装的5种方法
linux·运维·centos
男孩李29 分钟前
浅谈代理流程自动化 (APA)
运维·人工智能·自动化
尚久龙41 分钟前
安卓学习 之 用户登录界面的简单实现
android·运维·服务器·学习·手机·android studio·安卓
high20111 小时前
【 运维相关】-- HTTP 压测/负载发生器之新秀 oha
运维·网络协议·http
DONG9991 小时前
ubuntu 22 安装轻量级桌面Xfce并使用xrdp远程桌面连接
linux·运维·ubuntu
東雪蓮☆2 小时前
从零开始掌握 Web 与 Nginx:入门详解
运维·服务器·前端·nginx
Miraitowa_cheems3 小时前
LeetCode算法日记 - Day 38: 二叉树的锯齿形层序遍历、二叉树最大宽度
java·linux·运维·算法·leetcode·链表·职场和发展
青铜发条3 小时前
【python】python进阶——网络编程
运维·服务器·网络