Kak*_*oin 9 python ssh amazon-web-services amazon-elastic-beanstalk
我正在按照此AWS教程在Amazon Elastic Beanstalk上部署python应用程序:
我按照指南一直到EB Cli应该提示我创建一个密钥对.但我得到的只是提示键入密钥对的名称.
Do you want to set up SSH for your instances?
(y/n): y
Type a keypair name.
(Default is aws-eb):
You must specify a key type (-t).
Usage: ssh-keygen [options]
Options:
-b bits Number of bits in the key to create.
-c Change comment in private and public key files.
-e Convert OpenSSH to IETF SECSH key file.
-f filename Filename of the key file.
-g Use generic DNS resource record format.
-i Convert IETF SECSH to OpenSSH key file.
-l Show fingerprint of key file.
-p Change passphrase of private key file.
-q Quiet.
-y Read private key file and print public key.
-t type Specify type of key to create.
-B Show bubblebabble digest of key file.
-C comment Provide new comment.
-N phrase Provide new passphrase.
-P phrase Provide old passphrase.
-r hostname Print DNS resource record.
-G file Generate candidates for DH-GEX moduli
-T file Screen candidates for DH-GEX moduli
ERROR: The EB CLI cannot find your SSH key file for keyname "aws-eb". Your SSH key file must be located in the .ssh fold
er in your home directory.
Run Code Online (Sandbox Code Playgroud)
我也试过了
eb init --interactive
Run Code Online (Sandbox Code Playgroud)
但结果仍然相同.
我还在这里挖掘EB CLI文档:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
我得到的结果是这样的:
Select a keypair.
1) [ Create new KeyPair ]
(default is 1): 1
Run Code Online (Sandbox Code Playgroud)
我在使用Powershell的Windows 8.1上.
我的Eb Cli版本是:EB CLI 3.4.5(Python 2.7.1)
我已经安装了OpenSSH以及您在AWS教程(上面的链接)中看到的所有内容.
我会提供尽可能多的信息.请随时问.
我已经坚持了一段时间尝试了很多选择.
任何帮助表示赞赏.
谢谢!
通过使用EC2控制台手动创建密钥对来获取它.
以下是有兴趣的人:http: //docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair
感谢SonarJetLens的指导.:)
| 归档时间: |
|
| 查看次数: |
9297 次 |
| 最近记录: |