[英]AWS Elastic Beanstalk CLI does not prompt to create new keypair
我正在按照此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.
我也試過了
eb init --interactive
但結果仍然相同。
我還在這里挖掘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
我在使用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的指導。 :)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.