sshd 应该停止访问 Amazon EC2 实例的其他方法吗?
在 debian 或 ubuntu 实例上,autossh 通常会通过将守护程序名称添加到 /etc/rc.conf 文件中的 DAEMONS 数组来实现此目的,而在 arch 实例上。
如果尽管采取了此措施(在相应的实例中),sshd 仍然无法自动重新启动怎么办?如果 sshd 在重新启动后无法自动启动或由于某种原因 sshd 死机,我如何重新获得对实例的控制?
在 linode.com 上,他们提供了名为 LISH 的东西(参考 - http:// library.linode.com/troubleshooting/using-lish-the-linode-shell)为我解决了这个特殊问题。 Amazon EC2 上有等效的吗?我似乎找不到引用此类特性/功能的文档 - 我认为这对于服务器的远程管理非常重要。
On a debian or ubuntu instance, autossh usually does the trick and on an arch instance, by adding the daemon name to the DAEMONS array in /etc/rc.conf file.
What if sshd still fails to autorestart despite this measure being taken (in the respective instances)? How can I regain control of my instance if some how sshd fails to autostart after a reboot or for some reason sshd dies?
On linode.com, they provide something called LISH (reference - http://library.linode.com/troubleshooting/using-lish-the-linode-shell) which solves this particular problem for me. Is there an equivalent on Amazon EC2? I can't seem to find documents referring to such a feature/functionality - which I feel is really critical for remote management of servers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有趣的问题。我坚持可以访问数据库但无法 ssh 或访问网络服务器(完全不确定出了什么问题),但遇到了问题。
为了解决这个问题,我联系了技术支持(通过支持论坛,但我认为您也可以通过电话进行),他们重新启动了我的其他服务。他们会请求您批准连接,并且可以协助处理此类事情。
Interesting question. I've had a problem with my insistence where I could access the database but unable to ssh or access the webserver(not sure at all what went wrong).
To resolve, I contacted tech support(via the support forums but I think you can do it via phone also), and they restarted my other services. They ask for your approval to connect and they can assist with things like this.