Problems with SSH / IAM authentication on new AWS hubs cloud instance. #3021
-
Does anyone have any hints for what I may be doing wrong, re: logging in with SSH? I am setting up a new hubs cloud on my personal AWS account. I have added a keypair and the pem file is recognized, but I am having trouble with the IAM authentication. I created an IAM user, and then I also added IAM authentication to my root user, but when I try to ssh in to my instance, neither of these codes is accepted. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey @MegaMotion ! I'm not sure IAM is what's holding up your access to the instance. When you create your keypair for the steps outlined in https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair You likely have another auth layer to set up also. In /admin go to the server access sidebar menu item and use the QR code to get your 2fa set up. It should have instructions there |
Beta Was this translation helpful? Give feedback.
-
I am facing a similar issue. My hubs is broken. In my attempt to bring it up I made an update to the stack, increasing to 2 app servers. I can't ssh to the new app server, I get an access denied error and/or connection refused. I don't get to the point of Verification Code because my hubs is broken, I can't access the Admin section. |
Beta Was this translation helpful? Give feedback.
Hey @MegaMotion ! I'm not sure IAM is what's holding up your access to the instance. When you create your keypair for the steps outlined in https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair
you need to then use that keypair to log into the server. Should be something like
ssh-add -K ~/.ssh/yourkeyfile
after running that, you should be able to log in as it will reference the file you pointed to. I've had issues in the past with other identities getting in the way so if you suspect that, runssh-add -D
to remove all of your identities, then the above ssh-add command.You likely have another auth layer to set up also. In /admin go to the s…