Tested in version 9.6(1)
~# ssh admin@x.x.x.x Unable to negotiate with x.x.x.x port 22: no matching key exchange method fouer: diffie-hellman-group1-sha1
First method:
# ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 admin@x.x.x.x admin@x.x.x.x's password: Type help or '?' for a list of available commands. ASA1/act/pri>
Second method:
ASA1/act/pri(config)# ssh key-exchange group ? configure mode commands/options: dh-group1-sha1 Diffie-Hellman group 2 dh-group14-sha1 Diffie-Hellman group 14 ASA1/act/pri(config)# ssh key-exchange group dh-group14 ASA1/act/pri(config)# wr
Disconnect and reconnect:
# ssh admin@x.x.x.x admin@x.x.x.x's password: Type help or '?' for a list of available commands. ASA1/act/pri> en