8000 解决debian11 ubuntu20等使用securecrt winscp无法连接问题 · Issue #16 · SoraKasvgano/sorablog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
解决debian11 ubuntu20等使用securecrt winscp无法连接问题 #16
Open
@SoraKasvgano

Description

@SoraKasvgano

出现错误

Key exchange failed.
No compatible key exchange method. The server supports these methods: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256

解决方法

问题分析,新系统加密验证方式旧版本ssh客户端软件不支持,进行修改即可。
vi /etc/ssh/sshd_config在最下方空白输入

KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

之后重启ssh服务
sudo service ssh restart

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0