I executed this command on the Brocade switch with management IP (10.1.1.101) to copy the firmware (spz10106.bin) from the SSH server (10.1.1.111)
SSH@TEST-SW1-7250#copy scp flash 10.1.1.111 spz10106.bin primary
Jan 8 17:57:13 linux_server sshd[19405]: fatal: Unable to negotiate with 10.1.1.101 port 7509: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 [preauth]
Since Brocade will take awhile to address this issue with a new firmware release, there are workarounds for this key exchange to be supported. This can be done by re-configuring the Linux SSH service.
Modify the SSH service config (/etc/ssh/sshd_config) and include this at the bottom of the config.
KexAlgorithms ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
# ssh-keygen -A
# systemctl restart sshd
This workaround will allow the SSH service to accept this "weak" key exchange. However, if this is applied to production environments, it is recommended to ensure to secure (restrict) access to this service as well as the network device.
Hope this helps!