kex_exchange_identification 问题:读取:连接被对等方重置

发布于 2025-01-11 05:06:11 字数 2531 浏览 0 评论 0原文

我在使用我大学的 VPN 从 Macbook 将我的 Web 应用程序(大学项目)部署到 Ubuntu Server 的过程中遇到问题。这是我第一次部署软件,所以这对我来说有很多新东西。

我试图将服务器配置为与 localhost (127.0.0.1) 一起使用,然后我无法再连接到 ssh,并显示此错误消息:

reynaldjhonson@Reynalds-MacBook-Air ~ % ssh [email protected]
kex_exchange_identification: read: Connection reset by peer
Connection reset by 10.197.245.113 port 22

这是我的 ssh -v

reynaldjhonson@Reynalds-MacBook-Air ~ % ssh [email protected] -v
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to swtp-ekg.ges.thm.de port 22.
debug1: Connection established.
debug1: identity file /Users/reynaldjhonson/.ssh/id_rsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_rsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_dsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_dsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519 type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_xmss type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
kex_exchange_identification: Connection closed by remote host
Connection closed by 10.197.245.113 port 22

和 telnet

telnet 10.197.245.113 22
Trying 10.197.245.113...
Connected to swtp-ekg.ges.thm.de.
Escape character is '^]'.
Connection closed by foreign host.

我已经阅读了很多解决方案在互联网上给出了更改服务器中的某些conf文件的方法,但我什至无法从我的Macbook访问服务器。

我真的很感谢任何帮助或提示! 谢谢!

I have a problem during deployment process of my web app (a university's project) to Ubuntu Server from Macbook with my university's VPN. This is my first time deploying a software so this is a lot of new things for me.

I was trying to configure the server to work with localhost (127.0.0.1) when then i can't connect anymore to the ssh, with this error message showing up:

reynaldjhonson@Reynalds-MacBook-Air ~ % ssh [email protected]
kex_exchange_identification: read: Connection reset by peer
Connection reset by 10.197.245.113 port 22

This is my ssh -v

reynaldjhonson@Reynalds-MacBook-Air ~ % ssh [email protected] -v
OpenSSH_8.6p1, LibreSSL 2.8.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to swtp-ekg.ges.thm.de port 22.
debug1: Connection established.
debug1: identity file /Users/reynaldjhonson/.ssh/id_rsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_rsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_dsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_dsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519 type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_xmss type -1
debug1: identity file /Users/reynaldjhonson/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.6
kex_exchange_identification: Connection closed by remote host
Connection closed by 10.197.245.113 port 22

and telnet

telnet 10.197.245.113 22
Trying 10.197.245.113...
Connected to swtp-ekg.ges.thm.de.
Escape character is '^]'.
Connection closed by foreign host.

I have read a lot of solutions given on Internet to change some conf file in the server, but i can't even access the server from my Macbook.

I really appreciate any help or tips!
Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文