1,333
社区成员




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
ssh 服务也要开启
看你贴的配置,如果是全部的额话,应该是缺少了一些配置:如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掉顺便配置允许登录的接口等