How to use a auto generated ssh key to connect to server with Amazon Lightsail Service through ModulesGarden

76 Views Asked by At

I'm implementing the Whmcs application through Amazon Lightsail ModulesGarden, following the Amazon Lightsail For WHMCS document guide. In the setting step, I turned on the Auto Generate SSH Key mode. After placing an order successfully I got a detailed invoice and in the database inserted automatically an ssh key record. However I don't know the right way to use it to connect to the server. I trying to copy the value in the private_key column and paste into a new file and use it like a RSA file. enter image description here

$ ssh -i ssh_rsa <username>@<public IP>
output: Load key "ssh_rsa": invalid format
0

There are 0 best solutions below