欢迎来到电脑知识学习网,专业的电脑知识大全学习平台!

手机版

华为路由器登录网址进不去怎么办(华为路由器远程登录方法)

操作系统 发布时间:2021-10-09 10:35:46

SSH(Secure Shell)是一套协议标准,可以用来实现两台机器之间的安全登录以及安全的数据传送,其保证数据安全的原理是非对称加密。

华为路由器登录网址进不去怎么办(华为路由器远程登录方法)(1)

SSH远程登录华为路由器

SSH是在传统的Telnet协议之基础上发展起来的一种安全的远程登录协议,相比于Telnet,SSH无论是在认证方式或者数据传输的安全性上,都有很大的提高,而且部分企业出于安全的需求网络设备管理必须通过SSH方式来实现,如何在华为路由器上配置SSH登录?如下:

实验环境:

华为路由器登录网址进不去怎么办(华为路由器远程登录方法)(2)

SSH远程登录

AR1配置命令:

1、配置ssh用户

[AR1]aaa

[AR1-aaa]local-user tom password cipher huawei privilege level 3

[AR1-aaa]local-user tom service-type ssh

[AR1-aaa]quit

[AR1]ssh user tom authentication-type password // 配置用户的认证方式

[AR1]stelnet server enable //开启ssh服务

2、生成RSA密钥对

[AR1]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]:

[AR1]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]:

Generating keys...

.........

.........

....................................

.

3、配置VTY(虚拟终端)界面,身份认证方式为AAA认证,允许用户以SSH的方式接入

[AR1]user-interface vty 0 4

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

[AR1-ui-vty0-4]protocol inbound ssh

AR2客户端配置命令:

[SW1]ssh client first-time enable //客户端第一次登录时需要下载公用秘钥对

[SW1]stelnet 10.1.11.1

测试结果可以正常使用用户名和密码的方式SSH远程登录AR1


华为路由器登录网址进不去怎么办(华为路由器远程登录方法)(3)




责任编辑:电脑知识学习网

操作系统