The problem is with a switch Quidway S2700-9TP-PWR-EI that can not set ssh access. The configuration is identical to other devices on which it normally works. When trying to access it displays the error "Connection closed by ssh server server".

stelnet server enable
ssh user <user name>
ssh user <user name> authentication-type password
ssh user <user name> service-type stelnet
aaa
local-user <user name> password cipher <password>
local-user <user name> priviledge level <level>
local-user <user name> service-type stelnet
If he SSH is not working but the configuration seems ok, run a debugging session.
After debugging the SSH server, we found the following message:

As suggested solution, please configure the following commands in order to make the SSH work:
[R6_U26_S2700]ssh server compatible-ssh1x enable
And
[R6_U26_S2700]RSA local-key-pair create
You can input the key modulus size for 1024 (it is mandatory to be between 512 and 2048).
Please try to connect SSH after this and check the results.