gpt4 book ai didi

linux - 无法连接到远程机器 'ssh_exchange_identification: read: Connection reset by peer'

转载 作者:行者123 更新时间:2023-11-28 23:56:58 26 4
gpt4 key购买 nike

我有权访问远程服务器,出于某种原因我必须授予我的 tomcat 用户访问权限。但是我错误地通过以下命令将用户和组更改为 tomcat7 用户:

chown -R tomcat:tomcat /

然后我无法使用 ssh 和 filezilla 登录我的虚拟机。出现以下错误:

ssh root@hostname ssh_exchange_identification: read: Connection reset by peer

最佳答案

哎呀,如果那个 chown cmd 成功了,你一定是以 root 身份执行它的,如果是的话 - 恐怕你更改了整个文件系统的所有者和组 - 我认为你无法再完全恢复你的系统。

可能能够(但不要抱太大希望):

  • ssh tomcat@主机名
  • 苏-

这会让你有机会挽救一些东西。

不要重启系统 - 它可能不会再次恢复。

关于linux - 无法连接到远程机器 'ssh_exchange_identification: read: Connection reset by peer',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29919120/

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