Tôi không thể ssh đến một máy chủ yêu cầu diffie-hellman-group1-sha1phương thức trao đổi khóa:
ssh 123.123.123.123
Unable to negotiate with 123.123.123.123 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Làm cách nào để kích hoạt diffie-hellman-group1-sha1phương thức trao đổi khóa trên Debian 8.0?
Tôi đã thử (như đề xuất ở đây ) để
- thêm các dòng sau vào - /etc/ssh/ssh_config- KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1 Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr
- tạo lại các phím với - ssh-keygen -A
- khởi động lại ssh với - service ssh restart- nhưng vẫn nhận được lỗi.