The second method, modify / etc / ssh / ssh_config file, the most in the end you can join. KexAlgorithms +diffie-hellman-group1-sha1