Monday, October 18, 2021

AWS : SSH Issue - Permission denied

https://stackoverflow.com/questions/36300446/ssh-permission-denied-publickey-gssapi-with-mic


 (publickey,gssapi-keyex,gssapi-with-mic).

ssh -i "CCA_Product.pem" ec2-user@10.79.197.206


docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws

ssh-keygen -m PEM

pem

pub


awsfeed.com/uncategorized/using-ec2-serial-console-to-access-the-grub-menu-and-recover-from-boot-failures


docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-to-serial-console.html#sc-connection-methods


Push your SSH public key to the instance to start a serial console session

aws ec2-instance-connect send-serial-console-ssh-public-key \

    --instance-id i-06a0d8564550494b0 \

    --serial-port 0 \

    --ssh-public-key file://serialAccess.pub \

    --region us-east-1

Connect to the serial console using your private key

ssh -i serialAccess i-06a0d8564550494b0.port0@serial-console.ec2-instance-connect.us-east-1.aws

i-06a0d8564550494b0

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass