华为交换机配置ssh登录

交换机 专栏收录该内容
3 篇文章 1 订阅

通过交换的console口连接PC,进行如下配置,具体连接方式可参考我另外一篇博客

<HUAWEI(guangkou-48)>sys  #  进入系统视图

[HUAWEI(guangkou-48)]aaa

[HUAWEI(guangkou-48)-aaa]local-user kobe password irreversible-cipher kobe@123  # kobe用户名,kobe@123密码
Info: Add a new user.

[HUAWEI(guangkou-48)-aaa]local-user kobe service-type ssh telnet  # kobe用户名
Warning: The user access modes include Telnet, FTP, or HTTP, so security risks exist.
Info: After changing the rights (including the password, access type, FTP directory, HTTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.

[HUAWEI(guangkou-48)-aaa]local-user kobe level 3  #  某些交换机没有这个命令,可以不用执行

[HUAWEI(guangkou-48)-aaa]quit

[HUAWEI(guangkou-48)]stelnet server enable
Info: Succeeded in starting the Stelnet server.

[HUAWEI(guangkou-48)]ssh authentication-type default password

[HUAWEI(guangkou-48)]ssh authorization-type default aaa  #  某些交换机没有这个命令,可以不用执行

[HUAWEI(guangkou-48)]user-interface vty 0 4

[HUAWEI(guangkou-48)-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA users, please check whether it is correct.

[HUAWEI(guangkou-48)-ui-vty0-4]user privilege level 3

[HUAWEI(guangkou-48)-ui-vty0-4]idle-timeout 0 0
Warning: Idle time-out is configured as 0, so session will never be disconnected because of timeout.

[HUAWEI(guangkou-48)-ui-vty0-4]quit

[HUAWEI(guangkou-48)]commit

[HUAWEI(guangkou-48)]quit

<HUAWEI(guangkou-48)>save
The current configuration will be written to flash:/vrpcfg.zip.
Are you sure to continue?[Y/N]y
Now saving the current configuration to the slot 0....
Save the configuration successfully.

<HUAWEI(guangkou-48)>

配置完成,亲测有效。

  • 0
    点赞
  • 0
    评论
  • 3
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论 您还未登录,请先 登录 后发表或查看评论
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页

打赏作者

阿等儿

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

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

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

打赏作者

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

抵扣说明:

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

余额充值