![]() ![]() ppk file before you connect to your instance using the Putty or Filezilla tool. Now you can connect to your Lightsail instance with PuTTY or Filezilla using the new SSH private key you generated earlier. Copy and paste the public key you previously retrieved into the authorized_keys file. Note: To view the current public key of the keypair accepted by the instance, run the following command: $ cat ~/.ssh/authorized_keysĥ. After the SSH console is connected, open the ~/.ssh/authorized_keys file in a text editor. Select the name of the instance, and then select the Connect tab.Ĥ. Open any text editor and paste the contents you just copied.Ĭonnect to the instance via the browser-based SSH console and add the public key to the SSH configuration fileĢ. Select the entire public key, and then right-click and select Copy. Select the key pair file (.pem) downloaded in step 2, and then select Open. Then, change the File name type from PuTTy Private Key Files (*.ppk) to All Files (*.*) to see the. QaeJAAHco+CY/5WrUBkrHmFJr6HcXkvJdWPkYQS3xqC0+FmUZofz221CBt5IMucxXPkX4rWi+z7wB3RbīQoQzd8v7yeb7OzlPnWOyN0qFU0XA246RA8QFYiCNYwI3f05p6KL圎XAMPLE LsLnBItntckiJ7FbtxJMXLvvwJryDUilBMTjYtwB+QhYXUMOzce5Pjz5/i8SeJtjnV3iAoG/cQk+0FzZ Hz2ItxCih+PnDSUaw+WNQn/mZphTk/a/gU8jEzoOWbkM4yxyb/wB96xbiFveSFJuOp/d6RJhJOI0iBXr The command returns the public key, as shown in the following example: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClKsfkNkuSevGj3eYhCe53pcjqP3maAhDFcvBS7O6V On your local Linux or macOS computer, open the terminal, and then run the ssh-keygen command to retrieve the public key for your key pair: $ ssh-keygen -y -f /path_to_key_pair/my-key-pair.pem ![]() Retrieve the public key from the private key: ![]() ![]() Navigate to Account, Account, SSH keys and then select Create new to create a new SSH key.ģ. Generate a new SSH Key Pair from the Amazon Lightsail console and obtain the public key:Ģ. Method 1: Use the Lightsail browser-based SSH console to configure a new key pair. Refer to the following Resolution steps to gain the SSH access if the instance uses a custom SSH key pair (not the default). To do this, navigate to the Account > Account > SSH keys section in the Amazon Lightsail console. If you created the Lightsail instance using the default SSH key pair, then download the SSH private key. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |