My app connects to switches via ssh to gather info from them. I can connect to any model except this one. I get the authentication error from the switch yet i can connect via putty with the same credentials. Do you have any suggestions for the solution?
Check whether there's a host key on the 2510:
show crypto host-public-key
If not, generate one:
crypto key generate ssh
You might also want to check for firmware updates - host keys are auto generated except for ancient firmware versions. The current version for 2510G is Y.11.52.
Also, you might want to look into SNMP as a possibly better interface with the switch.