赣州新闻网

首页 / 科技

手机购物网站正规的推广方法有哪些?

2020-02-23 · 赣州新闻网 · 科技

telnet登录方式安全性没stelnet的安全性高,所以日常对安全比较敏感的,都采用SSH登录的方式。

以登录用户界面的验证方式为AAA授权验证,用户名为admin123,密码为Huawei@123为例

1.在服务器端生成本地密钥对。

<HUAWEI> system-view
dsa local-key-pair create
Info: The key name will be: HUAWEI_Host_DSA.
Info: The key modulus can be any one of the following : 1024, 2048.
Info: If the key modulus is greater than 512, it may take a few minutes.
Please input the modulus :
Info: Generating keys...
Info: Succeeded in creating the DSA host keys.

2.配置VTY用户界面。

 user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh //如果设备中已经配置了VTY 0~VTY 4界面支持的协议为Telnet方式,如果将其修改为SSH方式,退出当前登录界面后,不能再使用Telnet方式登录设备。此时建议用户先配置VTY 0~VTY 4界面支持的协议为all,即支持所有的协议。在成功配置STelnet后可以再执行protocol inbound ssh命令配置VTY 0~VTY 4界面支持的协议为SSH。
quit

3.新建用户名为admin123的SSH用户,且认证方式为Password。

 aaa
local-user admin123 password irreversible-cipher Huawei@123
local-user admin123 service-type ssh
local-user admin123 privilege level 15
quit
ssh user admin123 authentication-type password

4.设备开启STelnet服务功能。

 stelnet server enable

5.配置SSH用户admin123的服务方式为STelnet。

 ssh user admin123 service-type stelnet

验证配置结果

通过第三方软件(例如PuTTY)登录设备,输入设备的IP地址,选择协议类型为SSH,输入用户名和密码STelnet登录设备。

配置STelnet是否成功的测试方法:配置完成后在系统视图下执行ssh client first-time enable和stelnet 127.0.0.1命令登录设备本身。如果出现登录界面,则代表配置成功,否则配置失败。

测试新建代表于都类型功能采用配置手机