无法从临时实例传输新的authorized_keys文件
我正在按照以下步骤操作: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-lost-key-pair.html#step-1-create-new-key-pair 使用新的访问我的 EC2 实例的密钥对,但在第 6 步运行 cp .ssh/authorized_keys /mnt/tempvol/home/ec2-user/.ssh/authorized_keys 命令时,我我遇到 .ssh/authorized_keys' 和 '/mnt/tempvol/home/ec2-user/.ssh/authorized_keys' 是同一个文件
。
我的根设备名称是 /dev/xvda,当我运行 lsblk 时,我会看到分区 xvda1 并按照说明中的方式安装它。我不知道我可能做错了什么,而且 AWS 不为免费个人账户提供技术支持。
任何帮助将不胜感激,谢谢。
I am following the steps from: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/replacing-lost-key-pair.html#step-1-create-new-key-pair to use a new key pair to access my EC2 instance, but on step 6 running the cp .ssh/authorized_keys /mnt/tempvol/home/ec2-user/.ssh/authorized_keys
command, I am met with .ssh/authorized_keys’ and ‘/mnt/tempvol/home/ec2-user/.ssh/authorized_keys’ are the same file
.
My root device name is /dev/xvda, and when I run lsblk
, I see the partition xvda1 and mount that like in the instructions. I have no clue what I could be doing wrong and AWS doesn't give technical support for free personal accounts.
Any help would be greatly appreciated, thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论