[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 //这个在访问端获取密钥