简体   繁体   English

SSH:我的一个LXC的“连接重置”

[英]SSH : “Connection reset” for one of my LXC's

I've been stuck for a while about my ssh connection to one of my LXC's. 关于我与LXC之一的ssh连接,我已经停留了一段时间。 Indeed, when I connect in ssh to my other LXC, everything works. 确实,当我通过ssh连接到其他LXC时,一切正常。 However, one does not want to connect and displays this error: 但是,一个人不想连接并显示此错误:

ssh root@mysite.lxc

Connection reset by 10.0.3.12 port 22 通过10.0.3.12端口22重置连接

I do not want to use the following command ... 我不想使用以下命令...

sudo rm /etc/ssh/ssh_host_* && sudo dpkg-reconfigure openssh-server

... because my SSH connection works well for my other sites. ...因为我的SSH连接在我的其他站点上运行良好。 Do you have an idea ? 你有想法吗 ?

如果您在Proxmox主机上运行LXC容器,则可以尝试使用“ pct enter”通过主机输入容器,而不是使用单独的SSH连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM