码迷,mamicode.com
首页 > 其他好文 > 详细

华为SSH配置

时间:2014-12-10 01:59:42      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:路由器   华为   

配置路由器IP基础

[Huawei]sys R1
[R1]inter g0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.233.200 24
[R1-GigabitEthernet0/0/0]q

 

可选命令是重新生成RSA密钥对,因为默认已经存在有了

[Huawei]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]:1024
Generating keys...
.++++++
......................++++++
.++++++++
.....++++++++

 

#开启SSH服务并创建账号

[R1]stelnet server enable
[R1]aaa
[R1-aaa]local-user ssh001 privilege level 3 password cipher ssh001
[R1-aaa]local-user ssh001 service-type ssh
[R1-aaa]q

 

#配置VTY上允许SSH协议
[R1]user-interface vty 0 4
[R1-ui-vty0-4]authentication-mode aaa
[R1-ui-vty0-4]protocol inbound ssh


本文出自 “Dream IT” 博客,请务必保留此出处http://wcrichard.blog.51cto.com/5081959/1588107

华为SSH配置

标签:路由器   华为   

原文地址:http://wcrichard.blog.51cto.com/5081959/1588107

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!