[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Create an SSH key pair\n======================\n\nTo enable encrypted communications with your cluster, you must create an\nasymmetric key pair (a public and a private key) and associate it with your\ncontrol plane or node pool virtual machines.\n\nTo generate an asymmetric key pair, run the following command: \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\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\"\u003eCOMMENT\u003c/var\u003e: a text string describing the key\n\nThis creates two files: \u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e containing your\nSSH private key, and \u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e`.pub` containing the\ncorresponding public key.\n\nTo save your SSH public key into an environment variable, run the following\ncommand: \n\n SSH_PUBLIC_KEY=$(cat \u003cvar translate=\"no\"\u003eSSH_PRIVATE_KEY\u003c/var\u003e.pub)\n\nWhat's next\n-----------\n\n- [Quickstart](/kubernetes-engine/multi-cloud/docs/azure/quickstart)\n- [Create a cluster](/kubernetes-engine/multi-cloud/docs/azure/how-to/create-cluster)"]]