BladeSystem - General
1748124 Members
3224 Online
108758 Solutions
New Discussion

Re: How to enable ssh on HP 6125G switch

 
ln1
Occasional Contributor

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?

8 REPLIES 8
scharchouf
Trusted Contributor

Re: How to enable ssh on HP 6125G switch

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

 

 

ln1
Occasional Contributor

Re: How to enable ssh on HP 6125G switch

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".

Dennis Handly
Acclaimed Contributor

Re: How to enable ssh on HP 6125G switch

>What's wrong with my configuration?

 

Can you invoke ssh with -vvv?

ln1
Occasional Contributor

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".

Dennis Handly
Acclaimed Contributor

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

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?

Ankit_Bansal
New Member

Re: How to enable ssh on HP 6125G switch

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

charly_farias
Occasional Visitor

Re: How to enable ssh on HP 6125G switch

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