[英]Setting up aws ec2 first time - key-pair
I am following this tutorial (see 'Create Key-Pair' section), and am getting an error when trying to perform chmod
on my key pair.我正在关注本教程(请参阅“创建密钥对”部分),并且在尝试对我的密钥对执行
chmod
时出现错误。
The error I get is我得到的错误是
No such file or directory
无此文件或目录
file name is abcd.pem
my username is xyz
region is seoul
文件名是
abcd.pem
我的用户名是xyz
地区是seoul
The above are just examples.以上只是示例。
How should I construct the following command我应该如何构建以下命令
chmod 400 your_user_name-key-pair-region_name.pem
should it be应该是
chmod 400 xyz-abcd-seoul.pem
?? chmod 400 xyz-abcd-seoul.pem
??
You want to make sure you specify the full path to the file, not just the file name.您要确保指定文件的完整路径,而不仅仅是文件名。 The file name is just that, the file name - you only include your username and region if the region name and/or username are actually part of the filename.
文件名就是文件名 - 如果区域名称和/或用户名实际上是文件名的一部分,则仅包含您的用户名和区域。
Do a dir
or ls
and find out the actual filename as it exists on your local disk, and path, and then use that in your chmod
command.执行
dir
或ls
并找出本地磁盘上存在的实际文件名和路径,然后在chmod
命令中使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.