交换机7506e-s 这个是型号,下面的配置我是直接刷到交换机去的
password-control length 12
user-interface vty 0 4
authentication-mode scheme
local-user admin
password simple Qzhgyq1234@#$%
service-type ssh
authorization-attribute level 3
ssh server enable
undo telnet server enable
测试的结果就是------------------------
<2Q-HX>ssh2 192.168.12.1
Username: admin
Trying 192.168.12.1 ...
Press CTRL+K to abort
Connected to 192.168.12.1 ...
Connection closed.
<2Q-HX>
这个要怎么解决
(0)
最佳答案
authorization-attribute level 3这个
改成authorization-attribute level 15
刷一下
# line vty 0 63
authentication-mode scheme
user-role network-operator
#
ssh server enable
undo telnet ser e
#
local-user admin
class manage password simple ***.***@!qwe
service-type ssh terminal https
authorization-attribute user-role network-admin
#
(0)
level最大就是3 进vty没有user-role network-oprator命令
是的,console去配置的,ssh都能弹出username了 ,但是一直提示连接已关闭
我测试了用telnet就是可以的,ssh就是不行
ssh server enable开一下
(0)
开了的,还是不行
开了的,还是不行
少配置了一些配置,可核对下面的
ssh server enable
local-user admin class manage
password sim xxxxx
service-type ssh terminal
authorization-attribute user-role network-admin
line vty 0 4
authentication-mode scheme
user-role network-admin
protocol inbound ssh
(0)
public-key local create rsa
public-key local create dsa
ssh server enable
user-interface vty 0 63
authentication-mode scheme
protocol inbound ssh
quit
local-user admin
password simple h3c@123456
service-type ssh
authorization-attribute user-role network-admin
quit
可以参考下这个
(0)
您好,请知:
检查下SSH的配置,以下是SSH配置参考命令:
1、基础网络配置:
<H3C>sys
System View: return to User View with Ctrl+Z.
[H3C]vlan 10
[H3C-vlan10]quit
[H3C]int vlan 10
[H3C-Vlan-interface10]ip address 192.168.124.254 24
[H3C-Vlan-interface10]quit
[H3C]int gi 1/0/1
[H3C-GigabitEthernet1/0/1]port link-type access
[H3C-GigabitEthernet1/0/1]port access vlan 10
[H3C-GigabitEthernet1/0/1]quit
2、创建管理员账号,并赋予最高权限,仅允许SSH登录
[H3C]local-user admin
New local user added.
[H3C-luser-manage-admin]password simple admin
[H3C-luser-manage-admin]service-type ssh
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]quit
4、开启SSH功能
[H3C]ssh server enable
5、在VTY调用本地用户登录
[H3C]line vty 0 4
[H3C-line-vty0-4]authentication-mode scheme
[H3C-line-vty0-4]protocol inbound ssh
[H3C-line-vty0-4]quit
如果还无法登录,检查下是否做了登录限制,并重建密钥看下。
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
刷不上吗,我上边给你的配置