Loading... ## 配置思路 ### 采用如下的思路配置用户通过STelnet登录设备: 1. PC端已安装登录SSH服务器软件。 2. 在SSH服务器端生成本地密钥对,实现在服务器端和客户端进行安全地数据交互。 3. 在SSH服务器端配置SSH用户client001。 4. 在SSH服务器端开启STelnet服务功能。 5. 在SSH服务器端配置SSH用户client001服务方式为STelnet。 6. 用户client001以STelnet方式登录SSH服务器。 ## 操作步骤 ```bash 1. 在服务器端生成本地密钥对 2. <HUAWEI> system-view 3. [HUAWEI] sysname SSH_Server 4. [SSH_Server] dsa local-key-pair create 5. Info: The key name will be: HUAWEI_Host_DSA. 6. Info: The key modulus can be any one of the following : 512, 1024, 2048. 7. Info: If the key modulus is greater than 512, it may take a few minutes. 8. Please input the modulus [default=2048]: 9. Info: Generating keys... Info: Succeeded in creating the DSA host keys. 10. 在服务器端创建SSH用户 ``` ## 配置VTY用户界面。 ```bash [SSH_Server] user-interface vty 0 14 [SSH_Server-ui-vty0-14] authentication-mode aaa [SSH_Server-ui-vty0-14] protocol inbound ssh [SSH_Server-ui-vty0-14] quit ``` ## 新建用户名为client001的SSH用户,且认证方式为Password。 ```bash [SSH_Server] aaa [SSH_Server-aaa] local-user client001 password irreversible-cipher Huawei@123 [SSH_Server-aaa] local-user client001 privilege level 3 [SSH_Server-aaa] local-user client001 service-type ssh [SSH_Server-aaa] quit [SSH_Server] ssh user client001 authentication-type password 11. SSH服务器端开启STelnet服务功能 [SSH_Server] stelnet server enable 12. 配置SSH用户client001的服务方式为STelnet [SSH_Server] ssh user client001 service-type stelnet ``` Last modification:July 30, 2020 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏