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
Related posts 相關文章
在 Windows 上面 Plesk Obsidian 18.0.60 後不再維護 BIND DNS
More...
架設 VPN 服務 – WireGuard – 主打比 IPSec、OpenVPN 更快、安全
More...
OpenVPN 2.4.8 for Windows – TLS v1.2
More...
透過 SSH Tunnel 從 A SSH 連到 B
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。