[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-31 UTC."],[],[],null,["# Create an EC2 key pair\n\nYou can associate a specific SSH key pair with control plane or node pool\ninstances during creation.\n\nTo generate an asymmetric private key and import its public key into AWS, run\nthe following commands: \n\n ssh-keygen -t rsa -m PEM -b 4096 -C \"\u003cvar translate=\"no\"\u003eCOMMENT\u003c/var\u003e\" \\\n -f \u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e -N \"\" 1\u003e/dev/null\n\n aws ec2 import-key-pair --key-name \u003cvar translate=\"no\"\u003eSSH_KEY_PAIR_NAME\u003c/var\u003e \\\n --public-key-material fileb://\u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e.pub\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e: a file name to save the key in\n- \u003cvar translate=\"no\"\u003eSSH_KEY_PAIR_NAME\u003c/var\u003e: a name you choose for the key pair\n- \u003cvar translate=\"no\"\u003eCOMMENT\u003c/var\u003e: a text string describing the key\n\nWhat's next\n-----------\n\n- [Quickstart](/kubernetes-engine/multi-cloud/docs/aws/quickstart)"]]