ssh 到裝有 cygwin openssh 的 windows 主機出現 no kex alg 錯誤
解決方式
打開 Cygwin Terminal (用系統管理員權限)
vi /etc/sshd_config
加入
Ciphers aes128-ctr,aes192-ctr,aes256-ctr HostKeyAlgorithms ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa,ssh-dss KexAlgorithms ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 MACs hmac-sha2-256,hmac-sha2-512,hmac-sha1
重啟 sshd
net stop cygsshd net start cygsshd
留言