Issue
I used command line below to generate a key pair.
ssh-keygen -t rsa -f ~/.ssh/bitnami -C bitnami
And I copy the content of bitnami.pub to Metadata SSH Keys.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIo5My5G5XLjvjs61mRzndTkfSivLch8udMKAzBP53PFmz0z8/puLxD9NEMKvJe7dSN6bgOqSmhdOQS0Tr8CanCasd4cv9DBRzx9p+Nx5/WxQem6JLYXaQKS/MIQH4zEDLqEYhCpSUOLxM6lnSq/5kRh2/uY6ESvCUUBjNkh9OALIeTjajgIMQidcpfSJi/nxmQkLlybP9yMRHTWfpLEZmGQIUHYBvMBTb9TME31P/t6256awLRL5v1e6D9jR0OouofVNMdPxOYCkmSOcoLrjFX7fbIAVXv6Z5NLilWGG2u/UiqqKpVjQOz0jBoZNtHJWlgZGJRoUOUwOXKyQZQFLN bitnami
But when I use ssh like below, I can't ssh to the instance.
ssh -i ~/.ssh/bitnami [email protected]
The error info is like:
[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Can anybody help me?
Solution
@John Hanley, you are right. I tried to add a user named bitnami, and that's OK. Many thanks.
Answered By - Joseph Chen Answer Checked By - Gilberto Lyons (WPSolving Admin)