We are trying to do NCM capture for a device family. Unfortunately we are not able to do SSH from Spectrum console.
But we are able to do SSH of device from NetOps Spectrum server.
In the NCM debug log when try to run the capture, the below error is getting displayed:
calling custom family jsch
CustomSSH jschcaptureconfig starting:
host: x.x.x.x
filename: / data/ Spectrum/NCM/cache/SCM_Ox231231
username :
password: xxxxxxxx
Exception occured : Algorithm negotiation fail
Session already closed
error status not equal to SUCESS
8523794
captureRunningConfigRun attempts down to: 0
in GRPC captureRunningconfig8523794
NetOps Spectrum up to 23.3.6
There is no match between SSH algorithms offered by Spectrum and the other device.
Up to and including 23.3.6 we use the jsch 0.1.55 offering the following :
ecdh-sha2-nistp256,
ecdh-sha2-nistp384,
ecdh-sha2-nistp521,
diffie-hellman-group14-sha1,
diffie-hellman-group-exchange-sha256,
diffie-hellman-group-exchange-sha1,
diffie-hellman-group1-sha1
diffie-hellman-group14-sha224@ssh.comref:
diffie-hellman-group14-sha256@ssh.com
diffie-hellman-group15-sha256@ssh.com
diffie-hellman-group15-sha384@ssh.com
diffie-hellman-group16-sha384@ssh.com
diffie-hellman-group16-sha512@ssh.com
diffie-hellman-group18-sha512@ssh.com
diffie-hellman-group-exchange-sha224@ssh.com
diffie-hellman-group-exchange-sha384@ssh.com
diffie-hellman-group-exchange-sha512@ssh.com
hmac-sha224@ssh.com
hmac-sha256@ssh.com
hmac-sha256-2@ssh.com
hmac-sha384@ssh.com
hmac-sha512@ssh.com
ssh-rsa-sha224@ssh.com
ssh-rsa-sha256@ssh.com
ssh-rsa-sha384@ssh.com
ssh-rsa-sha512@ssh.com
NetOps Spectrum 23.3.7 added some properties to the $SPECROOT/NCM/config.xml file to enable the latest jsch JAR (introduced in this release) to support the deprecated Ciphers and Key Exchange (KEX) for successful device capture
Refer to Updated config.xml to Support Deprecated Ciphers and KEX