ssh 基本配置实验
拓扑图

001 基本配置
[H3C]int g0/0
[H3C-GigabitEthernet0/0]ip address 192.168.56.254 24
<H3C>save
002 启用ssh服务
[H3C]dis cur | include ssh
[H3C]ssh server enable
003 aaa用户配置
[H3C]local-user admin
[H3C-luser-manage-admin]password simple Luoxue@123
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]service-type ssh terminal https
004 user-interface 配置
[H3C]user-interface vty 0 4
[H3C-line-vty0-4]authentication-mode scheme
[H3C-line-vty0-4]protocol inbound ssh
005 console密码
[H3C]user-interface console 0
[H3C-line-console0]authentication-mode scheme
006 web
//https://www.h3c.com/cn/d_201910/1239331_30005_0.htm#
[H3C]ip https enable
quiz
- C:\Users\luoxue>ssh admin@192.168.56.254 Unable to negotiate with 192.168.56.254 port 22: no matching host key type found. Their offer: ssh-rsa