linux – 启动停止或重启后,AMI启动的EC2实例无法访问(ssh)

linux – 启动停止或重启后,AMI启动的EC2实例无法访问(ssh),第1张

概述当我们从AMI启动实例时.首先可以访问实例(ssh).一旦我们停止/启动实例或重新启动它,机器就会通过ssh无法访问,我们可以ping它.我们在系统日志中看到以下错误. AMI ID used - ami-72dc9220Instance - i-0896a15f - Linux rhel6.4 M1.large instance.../******************* BLKF 当我们从AMI启动实例时.首先可以访问实例(ssh).一旦我们停止/启动实例或重新启动它,机器就会通过ssh无法访问,我们可以Ping它.我们在系统日志中看到以下错误.
AMI ID used - ami-72dc9220Instance - i-0896a15f - linux rhel6.4 M1.large instance.../******************* BLKFRONT for device/vbd/2049 **********backend at /local/domain/0/backend/vbd/236/2049Failed to read /local/domain/0/backend/vbd/236/2049/feature-barrIEr.Failed to read /local/domain/0/backend/vbd/236/2049/feature-flush-cache.14680064 sectors of 512 bytes**************************Thread "kbdfront": pointer: 0x21e0130010,stack: 0x3720000FBFRONT for device/vfb/0 **********KBDFRONT for device/vkbd/0 **********Failed to read device/vfb/0/backend-ID.Failed to read device/vkbd/0/backend-ID.Error ENOENT when reading the backend path device/vkbd/0/backendThread "kbdfront" exited.Error ENOENT when reading the backend path device/vfb/0/backend./
解决方法 能够解决这个问题.这是由于 a bug from REDHAT for 6.4 rhel instances.
从AMI启动机器后,连接到机器并切换到root用户,并在下面更改/etc/rc.d/rc.local文件…

删除以下三行并保存文件:

cat <<Eol >> /etc/ssh/sshd_config UsednS no PermitRootLogin without-password../

还应该从/ etc / ssh / sshd_config文件中删除垃圾条目.

在这些更改工作正常后,机器重新启动.

总结

以上是内存溢出为你收集整理的linux – 启动/停止或重启后,AMI启动的EC2实例无法访问(ssh)全部内容,希望文章能够帮你解决linux – 启动/停止或重启后,AMI启动的EC2实例无法访问(ssh)所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1049187.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存