Switches, Hubs, and Modems
1753519 Members
5034 Online
108795 Solutions
New Discussion юеВ

ssh server breaks connections immediately upon establishment on 5500 switch

 
avraham
Occasional Contributor

ssh server breaks connections immediately upon establishment on 5500 switch

i beleive in broke the ssh server config on the switch.

on attempting to connect, i get:

ssh -c aes128-cbc 10.1.152.12
avraham@10.1.152.12's password:
X11 forwarding request failed on channel 0
Received disconnect from 10.1.152.12 port 22:2: The connection is closed by SSH Server.
Disconnected from 10.1.152.12 port 22

output of 'dis ssh serv stat' is:

sshstatus.png

 

any hints would be appreciated.

tnx

ams

2 REPLIES 2
drk787
HPE Pro

Re: ssh server breaks connections immediately upon establishment on 5500 switch

Hi,

Have you configured the service-type ssh for the user as below. 

local-user admin 
password simple admin
service-type ssh
authorization-attribute user-role network-operator

If you still have issue, can you share the ful configuration of the switch.

Thank You!
I am an HPE Employee

Accept or Kudo

Brotos
New Member

Re: ssh server breaks connections immediately upon establishment on 5500 switch

try looking at the line vty configuration

line class aux
authentication-mode scheme
user-role network-admin
#
line class vty
authentication-mode scheme
user-role network-operator
#
line aux 0 1
user-role network-admin
#
line vty 0 15
authentication-mode scheme
user-role network-operator

#
line vty 16 63
user-role network-operator