微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

SSH的RADIUS身份验证不起作用

如何解决SSH的RADIUS身份验证不起作用

我的RADIUS在Windows(NPS)上运行,而Linux(CentOS)则配置为RADIUS客户端。

# radtest -x -4 someuser "......" XXX.YYY.ZZZ.NNN 0 abcdfg
Sent Access-Request Id 35 from 0.0.0.0:49661 to XXX.YYY.ZZZ.NNN:1812 length 75
    User-Name = "user1"
    User-Password = "........."
    NAS-IP-Address = XXX.YYY.ZZZ.MMM
    NAS-Port = 0
    Message-Authenticator = 0x00
    Cleartext-Password = ".........."
Received Access-Accept Id 35 from XXX.YYY.ZZZ.NNN:1812 to 0.0.0.0:0 length 78
    Framed-Protocol = PPP
    Service-Type = Framed-User
    Class = 0x3a7e042900000137000102000a0a140300000000000000000000000001d68f7382402fd9000000000000001f

但是,当我尝试使用SSH登录时失败,并且Windows事件日志显示错误原因:

Authentication Failed due to a user credentials mismatch. Either the user name provided does not map to an existing user account or the password was incorrect.

问题在于用户名正确且密码正确(我正在使用这些凭据到RDP)并且用户在AD中。

任何想法都可能出什么问题,如何找到问题所在? TIA

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。