配置华为防火墙SSH连接

命令配置防火墙SSH连接:

[FW1]rsa local-key-pair create     //产生密钥对相当于启用SSH
The key name will be: FW1_Host
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 = 2048]:     //直接回车
Generating keys...
..+++++
........................++
....++++
...........++

[FW1]int g1/0/0	
[FW1-GigabitEthernet1/0/0]service-manage ssh permit 
[FW1-GigabitEthernet1/0/0]quit
[FW1]user-interface vty 0 4	
[FW1-ui-vty0-4]dis this 
#
user-interface con 0
 authentication-mode password
 set authentication password cipher $1a$W8)0/(XE8+$&jfQ#8TQ%Bt'2D3/cp"!@8>|Hrw]i
6\/N9A,z~zM$
user-interface vty 0 4
 authentication-mode aaa
 protocol inbound ssh
user-interface vty 16 20
#
return
[FW1-ui-vty0-4]quit
[FW1]aaa     //配置AAA认证
[FW1-aaa]manager-user yangqi     //配置用户名
[FW1-aaa-manager-user-yangqi]password cipher Yangqi123     //配置密码
[FW1-aaa-manager-user-yangqi]level 15      //配置权限等级
[FW1-aaa-manager-user-yangqi]service-type ssh     //配置应用服务
[FW1-aaa-manager-user-yangqi]quit     //退出
[FW1-aaa]quit     //退出
[FW1]stelnet server enable     //开启SSH服务
[FW1]ssh user yangqi
[FW1]ssh user yangqi authentication-type password
[FW1]ssh user yangqi service-type stelnet
[FW1]

[R1]ssh client first-time enable
[R1]stelnet 192.168.1.2
Please input the username:yangqi
Trying 192.168.1.2 ...
Press CTRL+K to abort
Connected to 192.168.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 192.168.1.2. Please wait...

Enter password:
The password needs to be changed. Change now? [Y/N]: y
Please enter old password: 
Please enter new password: 
Please confirm new password: 
Info: The connection was closed by the remote host.
[R1]stelnet 192.168.1.2
Please input the username:yangqi
Trying 192.168.1.2 ...
Press CTRL+K to abort
Connected to 192.168.1.2 ...
Enter password:
*************************************************************************
*         Copyright (C) 2014-2015 Huawei Technologies Co., Ltd.         *
*                           All rights reserved.                        *
*               Without the owner's prior written consent,              *
*        no decompiling or reverse-engineering shall be allowed.        *
*************************************************************************


Info: The max number of VTY users is 10, and the number
      of current VTY users on line is 2.
      The current login time is 2021-07-11 08:40:29+00:00.
<FW1>dis users
  User-Intf    Delay    Type   Network Address     AuthenStatus    AuthorcmdFlag

  0   CON 0   00:09:41                                   pass           no      
  Username : Unspecified

  34  VTY 0   00:00:00  SSH    192.168.1.1               pass           no      
  Username : yangqi

+ 35  VTY 1   00:00:00  SSH    192.168.1.1               pass           no      
  Username : yangqi

<FW1>
  • 28
    点赞
  • 25
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 54
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

正在努力中的杨Sir

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值