H3C更改console,创建用户名和telnet

创建/更改console密码

<H3C>sys

[H3C]line console 0

[H3C-line-console0]authentication-mode password

[H3C-line-console0]set authentication password simple password...

[H3C-line-console0]display this  //查看console 0

#

line con 0

 authentication-mode password

 user-role network-admin

 set authentication password hash $h$6$+YFcT3elLb9ikCBl$kHMgPQbXuSM2o7BevG/hxZRXgvsFq50K2x/y6ZX3Nhhs5OTlUQZnvSTloXh+N0q/MrmeA0cgHssNaq3WyMWSgw==

#

return

[H3C-line-console0]

登录测试:

Line con0 is available.

Press ENTER to get started.

Password: //输入console密码

******************************************************************************

* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

<H3C>%Jan 12 13:21:16:453 2024 H3C SHELL/5/SHELL_LOGIN: Console logged in from con0.

配置用户名、密码和telnet

<H3C>sys

[H3C]telnet server enable   //开启TELNET

Telnet is insecure because it transmits data in plaintext form.

[H3C]local-user admin class manage   //创建用户admin

New local user added.

[H3C-luser-manage-admin]password simple password...   //admin创建密码

%Jan 12 13:26:06:956 2024 H3C LS/5/LS_PWD_CHGPWD: The password of local device-management user admin was modified.

[H3C-luser-manage-admin]service-type telnet   //协议

[H3C-luser-manage-admin]authorization-attribute user-role network-admin

[H3C-luser-manage-admin]quit

设置VTY 0 4:

当authentication-mode后面接AAA(scheme)时,用户名和密码调用3A里的local-user

[H3C]line vty 0 4  

[H3C-line-vty0-4]authentication-mode scheme

[H3C-line-vty0-4]protocol inbound telnet

[H3C-line-vty0-4]display this

#

line vty 0 4

 authentication-mode scheme

 user-role network-operator

 protocol inbound telnet

#

return

当authentication-mode后面接password,密码调用VTY 0 4里的password

[H3C]line vty 0 4

[H3C-line-vty0-4]authentication-mode password

[H3C-line-vty0-4]set authentication password simple password...

[H3C-line-vty0-4]display this

#

line vty 0 4

 user-role network-operator

 set authentication password hash $h$6$iEFp+WHWNTVIXnZ4$rhuts3NruV8bDsd1okdNxqvWvM3mtpaVf7DF0vMFqnJj7ibVtYXGcGTkugq5rQRXpGnZxWNIZBlDpqpgOxWCwA==

#

测试:调用3A的认证,登录需要输入用户名和密码。

<S2>telnet 192.168.1.1

Trying 192.168.1.1 ...

Press CTRL+K to abort

Connected to 192.168.1.1 ...

Login: admin

Password: //输入密码

******************************************************************************

* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

<H3C>quit

close by login.

The connection was closed by the remote host!

<S2>

测试:调用本地的认证,登录只需要输入密码。

<S2>telnet 192.168.1.1

Trying 192.168.1.1 ...

Press CTRL+K to abort

Connected to 192.168.1.1 ...

Password: //输入密码

******************************************************************************

* Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.*

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.                    *

******************************************************************************

<H3C>quit

close by login.

The connection was closed by the remote host!

<S2>

  • 9
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

後來love

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

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

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

打赏作者

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

抵扣说明:

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

余额充值