Re: How to enable ssh on HP 6125G switch (749 Views)
Reply
ln1
Occasional Contributor
ln1
Posts: 5
Registered: ‎04-22-2014
Message 1 of 7 (810 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
scharchouf
Posts: 296
Registered: ‎03-07-2013
Message 2 of 7 (786 Views)

Re: How to enable ssh on HP 6125G switch

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

 

 

I am an HP employee
Was the post useful? Click on the white KUDOS! Star
ln1
Occasional Contributor
ln1
Posts: 5
Registered: ‎04-22-2014
Message 3 of 7 (781 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
Dennis Handly
Posts: 25,281
Registered: ‎03-06-2006
Message 4 of 7 (773 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
ln1
Posts: 5
Registered: ‎04-22-2014
Message 5 of 7 (765 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
Dennis Handly
Posts: 25,281
Registered: ‎03-06-2006
Message 6 of 7 (753 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.

 

 

 

 

ln1
Occasional Contributor
ln1
Posts: 5
Registered: ‎04-22-2014
Message 7 of 7 (749 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?

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.