gpt4 book ai didi

ubuntu - SSH 网络错误 : Connection refused

转载 作者:行者123 更新时间:2023-12-04 18:51:29 25 4
gpt4 key购买 nike

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


6年前关闭。







Improve this question




我试图在我的服务器上设置 sublime 文本编辑器以通过 sftp 连接,但一直在连接超时。
我找到了解决方案并遵循了这篇文章:
https://superuser.com/a/957666

他们建议通过添加 hmac-sha1 来更改服务器配置以接受客户端使用的 mac 算法。在 KexAlgorithms .
所以在 /etc/ssh/sshd_config , 我变了:

KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1


KexAlgorithms diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,hmac-sha1

现在我尝试登录我的服务器,我得到 Network error: Connection refused
如何重新获得对我的服务器的访问权限?我的服务器托管在 kimsufy 上。

最佳答案

您必须让 Kimsufi 支持他们重置您的 sshd_config 并重新启动 sshd。

然后,虽然要解决您的超时问题,但解决方案可能是使用 SSH 隧道并将其配置为发送“保持事件”数据包(基本上定期为空数据包以保持 session 事件)。

关于ubuntu - SSH 网络错误 : Connection refused,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32902736/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com