路由器加密命令 telenet ssh 以及 console口加密

[R3]sys
[R3]sysname R3 //改名字
[R3]user-interface vty 0 4 //*
[R3-ui-vty0-4]authentication-mode password 加口令
Please configure the login password (maximum length 16):huawei */
[R3-ui-vty0-4]quit

system-view
[R3]user-interface console0 //*
[R3-ui-console0]authentication-mode password console0口加口令
Please configure the login password (maximum length 16):huawei */
[R3-ui-console0]quit

system-view
Enter system view, return user view with Ctrl+Z.
[R3]user-interface vty 0 4 //*
[R3-ui-vty0-4]user privilege level 15 vty权限
[R3-ui-vty0-4]quit */

system-view
Enter system view, return user view with Ctrl+Z.
[R3]user-interface vty 0 4 //*
[R3-ui-vty0-4]authentication-mode aaa vty aaa 口令
[R3-ui-vty0-4]quit */
[R3]aaa //进入aaa认证
[R3-aaa]local-user zhang password cipher hauwei //创建本地账户
Info: Add a new user.
[R3-aaa]local-user zhang privilege level 15 //aaa本地账户给权限
[R3-aaa]local-user zhang service-type telnet //允许telnet访问
[R3-aaa]quit //推出

Stelent(SSH)

display rsa local-key-pair public //查看密钥
rsa local-key-pair create //重新获取密钥
[R2]user-interface vty 0 4
[R2-ui-vty0-4]user privilege level 15
[R2-ui-vty0-4]authentication-mode aaa //三A认证
[R2-ui-vty0-4]protocol inbound ssh //修改ssh协议也可以all或telnet
[R2-ui-vty0-4]aaa
[R2-aaa]local-user zhang password cipher huawei
[R2-aaa]local-user zhang service-type ssh
[R2]display ssh server status //下面是出来的东西
SSH version :1.99
SSH connection timeout :60 seconds
SSH server key generating interval :0 hours
SSH Authentication retries :3 times
SFTP Server :Disable
Stelnet server :Disable //这里需要改开放enable
[R2]stelnet server enable //开放

访问端
[R1]ssh client first-time enable //这个在访问端获取密钥

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值