Re: How to enable ssh on HP 6125G switch (1194 Views)
Reply
ln1
Occasional Contributor
Posts: 5
Registered: ‎04-22-2014
Message 1 of 9 (1,255 Views)

How to enable ssh on HP 6125G switch

HI, 

I'm trying to enable ssh and use it uinstead of telnet to access HP 6125G blade switch.

Here's my configuration:

 

local-user admin
 password cipher $c$....
 authorization-attribute level 3
 service-type ssh telnet
 service-type web
...

ssh server enable
ssh user admin service-type all authentication-type password
...

 

Every ssh attempt ends up with following:

ssh_exchange_identification: Connection closed by remote host

 

What's wrong with my configuration?

HP Pro
Posts: 305
Registered: ‎03-07-2013
Message 2 of 9 (1,231 Views)

Re: How to enable ssh on HP 6125G switch

check this PDF file, I think it can help you:

 

 

I work for HP
A quick resolution to technical issues for your HP Enterprise products is just a click away HP Support Center Knowledge-base
See Self Help Post for more details

ln1
Occasional Contributor
Posts: 5
Registered: ‎04-22-2014
Message 3 of 9 (1,226 Views)

Re: How to enable ssh on HP 6125G switch

[ Edited ]

I know this document, I followed all mandatory (non "Optional") steps from "Configuring the SSH server on the device" procedure. Still the same: "ssh_exchange_identification: Connection closed by remote host".

Acclaimed Contributor
Posts: 26,030
Registered: ‎03-06-2006
Message 4 of 9 (1,218 Views)

Re: How to enable ssh on HP 6125G switch

>What's wrong with my configuration?

 

Can you invoke ssh with -vvv?

ln1
Occasional Contributor
Posts: 5
Registered: ‎04-22-2014
Message 5 of 9 (1,210 Views)

Re: How to enable ssh on HP 6125G switch

$ ssh -vvv test@x.x.x.x
OpenSSH_5.5p1 Debian-6+squeeze4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug1: Connection established.
debug3: Not a RSA1 key file /home/xxx/.ssh/id_rsa.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-----END'
debug3: key_read: missing keytype
debug1: identity file /home/xxx/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/xxx/.ssh/id_rsa-cert type -1
debug1: identity file /home/xxx/.ssh/id_dsa type -1
debug1: identity file /home/xxx/.ssh/id_dsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

Note that SSH clients works perfectly with other ssh hosts. Only that switch is problematic.

The same happens when I'm trying to enfoirce password authentication with  ssh -vvv -o "PubkeyAuthentication no".

Acclaimed Contributor
Posts: 26,030
Registered: ‎03-06-2006
Message 6 of 9 (1,198 Views)

Re: How to enable ssh on HP 6125G switch

>debug3: Not a RSA1 key file /home/xxx/.ssh/id_rsa.

 

I'm not sure if this is important.  Is this a RSA key?

 

>ssh_exchange_identification: Connection closed by remote host

 

It seems the server just disconnects before anything can be sent.

 

 

 

 

Highlighted
ln1
Occasional Contributor
Posts: 5
Registered: ‎04-22-2014
Message 7 of 9 (1,194 Views)

Re: How to enable ssh on HP 6125G switch

> Is this a RSA key?

This key is accepted by another Linux machines, I assume it's OK. Also, when I'm trying to connect via ssh from the switch itself, it's interrupted immediately.

Definitely somethin's wrong with ssh server configuration on the blade switch.

 

Is anybody using it on 6125G?

Occasional Visitor
Posts: 1
Registered: ‎02-01-2015
Message 8 of 9 (381 Views)

Re: How to enable ssh on HP 6125G switch

Hi,
Any solution to problem posted by you....i am facing the same issue.

Occasional Visitor
Posts: 1
Registered: ‎06-22-2012
Message 9 of 9 (277 Views)

Re: How to enable ssh on HP 6125G switch

[ Edited ]

don't forget to generate the dsa key on the switch, and the vty access:

 

[switch] public-key local create dsa

[switch] user-interface vty 0
[switch-ui-vty0] ]authentication-mode scheme

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.