1、在SW1开启STelnet服务
[SW1]stelnet server enable
Info: Succeeded in starting the Stelnet server.
[SW1]ssh authentication-type default password
2、SW1上创建SSH用户“sshuser”,密码“huawei123”用于STelnet身份验证.
[SW1]aaa
[SW1-aaa]local-user sshuser password cipher huawei123
Info: Add a new user.
[SW1-aaa]local-user sshuser service-type ssh
[SW1-aaa]local-user sshuser privilege level 3
3、在SW1交换机上生成本地密钥对。
[SW1]rsa local-key-pair create
4、配置VTY,身份认证方式为AAA认证,允许用户以SSH的方式接入
[SW1]user-interface vty 0 4
[SW1-ui-vty0-4]protocol inbound ssh
|