华为eNSP配置远程ssh

1.分别选择一台AR2220路由器和一个cloud(这个是为了做映射)

2.配置cloud

2.1、先点击增加一个映射

2.2、选择一个本地looback网卡来绑定

2.3、绑定端口映射

3、配置路由器

3.1、配置IP地址(与LOOBACK网卡地址一致)

<Huawei>sys
Enter system view, return user view with Ctrl+Z.

[Huawei]undo info-center enable 
Info: Information center is disabled.
[Huawei]int g0/0/0 
[Huawei-GigabitEthernet0/0/0]ip add 10.0.0.10 24 
[Huawei-GigabitEthernet0/0/0]ping 10.0.0.1
  PING 10.0.0.1: 56  data bytes, press CTRL_C to break
    Reply from 10.0.0.1: bytes=56 Sequence=1 ttl=64 time=40 ms
    Reply from 10.0.0.1: bytes=56 Sequence=2 ttl=64 time=1 ms
    Reply from 10.0.0.1: bytes=56 Sequence=2 ttl=128 time=500 ms (DUP!)
    Reply from 10.0.0.1: bytes=56 Sequence=3 ttl=64 time=10 ms
    Reply from 10.0.0.1: bytes=56 Sequence=3 ttl=128 time=510 ms (DUP!)
    Reply from 10.0.0.1: bytes=56 Sequence=4 ttl=64 time=20 ms

  --- 10.0.0.1 ping statistics ---
    4 packet(s) transmitted
    4 packet(s) received
    2 duplicates
    0.00% packet loss
    round-trip min/avg/max = 1/180/510 ms

 3.2、启动stelnet服务功能

[Huawei]stelnet server enable 

3.3、进行虚拟终端配置界面

    
[Huawei]user-interface vty 0 4 
[Huawei-ui-vty0-4]authentication-mode aaa 
[Huawei-ui-vty0-4]protocol inbound ssh 
[Huawei-ui-vty0-4]q

3.4、进入aaa认证配置界面

[Huawei]aaa   
[Huawei-aaa]local-user huawei password cipher huawei privilege level 15 
Info: Add a new user.   
[Huawei-aaa]local-user huawei service-type ssh 
[Huawei-aaa]q
[Huawei]ssh user huawei authentication-type password
 Authentication type setted, and will be in effect next time

3.5、生成本地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]:
Generating keys...
.............................++++++++++++
.....++++++++++++
.............++++++++
..++++++++

[Huawei]

4、用xshell链接配的

  • 0
    点赞
  • 16
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值