这个是配置文件
version 5.20, Release 3509P55
# sysname ylxx-ac
# domain default enable system
# telnet server enable
# lldp enable # port-security enable
# web logbuffer size 1024
# oap management-ip 192.168.0.101 slot 0
# password-recovery enable
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
user-group system
group-attribute allow-guest
# local-user admin
password cipher $c$3$7brTXZ3/rN9WRkEwgPsx1nmSDi43laPbQ8QUdhqLYw==
authorization-attribute level 3
service-type ssh telnet
service-type web
local-user ylxx
password cipher $c$3$95ZQ+RU6w8tqbhFBXCjocAZRHiW8r7/IblFaV0ovTA==
authorization-attribute level 3
service-type ssh
service-type web
# ssh server enable
ssh user ylxx service-type all authentication-type password
#
ssh 登录就提示Received disconnect from 10.255.255.252 port 22:2: The connection is closed by SSH Server. Disconnected from 10.255.255.252 port 22
(0)
最佳答案
您好,参考
1.生成RSA和DSA密钥对
[H3C]public-key local create rsa
[H3C]public-key local create dsa
2.设置用户接口上的认证模式为AAA,并让用户接口支持SSH协议
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]authentication-mode scheme
[H3C-ui-vty0-4]protocol inbound ssh
3.创建用户admin,设置认证密码为luwenju-!@# 登录协议为SSH,能访问的命令级别 为 3
[H3C]local-user admin
[H3C-luser-admin]password cipher luwenju-!@#
[H3C-luser-admin]service-type ssh level 3
4.指定用户admin的认证方式为password
[H3C]ssh user admin authentication-type password
(0)
V5 的版本应该是需要创建密钥对把
生成RSA和DSA密钥对
[H3C]public-key local create rsa
[H3C]public-key local create dsa
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论