A-A+

华为SSH配置的一些常识

2015年12月29日 站长资讯 暂无评论

配置华为路由器的IP基础

  1. [Huawei]sys R1  
  2. [R1]inter g0/0/0  
  3. [R1-GigabitEthernet0/0/0]ip add 192.168.233.200 24  
  4. [R1-GigabitEthernet0/0/0]q  

可选命令是重新生成RSA密钥对,因为默认已经存在有了

  1. [Huawei]rsa local-key-pair create   
  2. The key name will be: Host  
  3. % RSA keys defined for Host already exist.  
  4. Confirm to replace them? (y/n)[n]:y   
  5. The range of public key size is (512 ~ 2048).  
  6. NOTES: If the key modulus is greater than 512,  
  7.        It will take a few minutes.  
  8. Input the bits in the modulus[default = 512]:1024  
  9. Generating keys...  
  10. .++++++  
  11. ......................++++++   
  12. .++++++++  
  13. .....++++++++  

#开启SSH服务并创建账号

  1. [R1]stelnet server enable  
  2. [R1]aaa  
  3. [R1-aaa]local-user ssh001 privilege level 3 password cipher ssh001  
  4. [R1-aaa]local-user ssh001 service-type ssh  
  5. [R1-aaa]q  

#配置VTY上允许SSH协议

  1. [R1]user-interface vty 0 4  
  2. [R1-ui-vty0-4]authentication-mode aaa  
  3. [R1-ui-vty0-4]protocol inbound ssh  
标签:

给我留言