Enter passphrase for key '/home/ec2-user/.ssh/lab-3-key - Cloud9, pcluster, FDS

0

I am attempting to run FDS (CFD code for fire simulation) on Cloud9 pcluster using the following tutorial: https://fds-smv-on-pcluster.workshop.aws/oyo/setup/pcluster.html

A few of the input commands in the tutorial are out of date, but* I have gotten to the point where you connect to the PCluster with your created ssh lab key to download and install FDS software:*

pcluster ssh --cluster-name pc-fsx -i ~/.ssh/lab-3-key

And I get asked for a passphrase: **Enter passphrase for key '/home/ec2-user/.ssh/lab-3-key': **

I do not know what this passphrase is. Is it created when I create my lab key? Is it from my AWS account or Cloud9 environment? I am relatively new to AWS and Python and command line.

FYI, the key is created as follows:


IFACE=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/)
SUBNET_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${IFACE}/subnet-id)
VPC_ID=$(curl --silent http://169.254.169.254/latest/meta-data/network/interfaces/macs/${IFACE}/vpc-id)
REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//')
AWS_REGION=$(curl --silent http://169.254.169.254/latest/meta-data/placement/availability-zone | sed 's/[a-z]$//')

# generate a new key-pair
aws ec2 create-key-pair --key-name lab-3-your-key --query KeyMaterial --output text --region=${AWS_REGION} > ~/.ssh/lab-3-key
chmod 600 ~/.ssh/lab-3-key

I believe I did everything as the tutorial asked, as far as I could tell. Any help?

gefragt vor 2 Jahren319 Aufrufe
1 Antwort
2
Akzeptierte Antwort

If you are asked for a passphrase, it's often because your private ssh key is encrypted. For example, when using the ssh-keygen command, there's the option to add a passphrase in the last step.

However, when you run the aws ec2 create-key-pair command, the private key is returned unencrypted. Perhaps you could try running this command again, to generate a new, unencrypted, key pair?

AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen