Skip to main content

LINUX BOX UNABLE TO SSH COMEWARE SWITCHES (5.2/7.1)

 LINUX BOX UNABLE TO SSH COMEWARE SWITCHES (5.2/7.1)


There is issue observed that the Linux Box unable to ssh the Comware 5.2 and 7.1 switches. It is showing the follwoing error:

Unable to negotiate with 192.168.10.254 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1


These SSH compatibility issues, we can simply temporarily enable all legacy cryptography methods that our SSH client currently supports. 

We can check the supported method from the Linux Box:

ssh -Q mac
ssh -Q kex
ssh -Q key
ssh -Q cipher


We need to fix the nagotiation method using the follwing command:

{
echo -n 'Ciphers '
ssh -Q cipher | tr '\n' ',' | sed -e 's/,$//'; echo

echo -n 'MACs '
ssh -Q mac | tr '\n' ',' | sed -e 's/,$//'; echo

echo -n 'HostKeyAlgorithms '
ssh -Q key | tr '\n' ',' | sed -e 's/,$//'; echo

echo -n 'KexAlgorithms '
ssh -Q kex | tr '\n' ',' | sed -e 's/,$//'; echo

} >> ~/.ssh/config

The will add the following details on the .ssh/config file:

Now you will able to login from the Linux box to the Comware Switches.


Thanks,
Naresh Mahato.



Comments

Popular posts from this blog

PRTG Backup and Restore

Hi All ! Today I am going to demonstrate how to backup PRTG and restore. Let's starts ! 1> we have to stop the service of the PRTG Core Server Service and PRTG Probe Service 2>  go to start run and type %programdata% and copy the Paessler folder to the another location 3> Before reinstalling the PRTG restore the backup copy of the data (Paessler folder)  as the previous location (%programdata%)  and then install the PRTG, and remove the Network Discovery if not required. you will find the old data with the new PRTG, it don't matter what the OS you are using. Now it has been completed your backup and restore the PRTG. Happy Learning !

ArubaOS-CX, ArubaOS- Switch, Comware and Cisco IOS

The command line comparison demonstrated for 4 different OS of the switches, I think this will help you to understand the configuration level deployment. Comware Differences If you are familiar with either the ArubaOS-Switch CLI or the Cisco IOS CLI, you will notice that the  Comware CLI is organized slightly differently . Comware was designed for Internet service providers (ISPs). Many features and functions—such as security and Quality of Service (QoS)—are multi-tiered to  support the different needs of multiple entities accessing the same switch. ArubaOS-CX ArubaOS switch (now the Aruba OS), HPE Comware version 7 Cisco IOS ArubaOS-CX operating system runs on the 8400 and 8320 switches. ArubaOS Switch operating system runs on Aruba 2530 , Aruba 2920 , Aruba 2930F , Aruba 2930M , Aruba 3810M , Aruba 5400R , HPE 2620 , HPE 3500 , HPE 5400 and HPE 3800 switch platforms. HPE Comware7 operating system runs on HPE FF 12900 , HPE 12500 , HPE 5120/5...