华为交换机配置ssh一直连不上

三明魏庆平 2023-12-07 22:30:34

ssh连接一直配不通,请各位大神帮忙看下是什么问题

交换机是华为 ar2201

vlan batch 9 321

interface Vlanif9                         
 ip address 10.48.25.6 255.255.255.0

vlan配了,我的电脑能ping通10.48.25.6交换机

aaa模式也配了

aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user wqp_test password irreversible-cipher %^%#$gUNC$8|&.qaX+'d(Xy$UrWzP`c[#Q(<eJ7|$b6~s4u[F^fb>AVTb)&>[uD!%^%#
 local-user wqp_test privilege level 15  
 local-user wqp_test service-type ssh

stelnet服务也开了stelnet server enable

vty配了

user-interface con 0                      
 authentication-mode aaa                  
user-interface vty 0                      
 authentication-mode aaa                  
 user privilege level 15                  
 protocol inbound ssh                     
user-interface vty 1 4                    
 authentication-mode aaa                  
 protocol inbound ssh

...全文
4511 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

ssh 服务也要开启

翱翔的狗 2024-04-16
  • 打赏
  • 举报
回复

看你贴的配置,如果是全部的额话,应该是缺少了一些配置:如SSH认证密钥和启用创建用户的SSH认证,不是aaa里的

service-type ssh

而是

ssh user xxx authentication-type password
ssh user xxx service-type stelnet

还有vty里的配置也不对

user-interface vty 0 4
 authentication-mode aaa 
user privilege level 3
 protocol inbound ssh

最后你要看下具体的系统版本,有些版本默认关闭SSH登录,要undo掉顺便配置允许登录的接口等

1,333

社区成员

发帖
与我相关
我的任务
社区描述
网络维护与管理相关内容讨论专区
网络网络安全安全 技术论坛(原bbs)
社区管理员
  • 网络维护与管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧