Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

After we follow aws login the link and after selecting the account, we can see that the connection get refused due to the last stage.

Is this a default problem on Github Hosted CodeSpaces .

AWS Login doenst work on Github Codespaces

What worked for me aws login --remote

You must be logged in to vote
Admin verified this answer by ashovlin Jan 26, 2026

Can you try it with the --remote flag? That won't use the local OAuth callback, and instead prompt you to paste a code from the browser.

Replies: 1 comment · 1 reply

Comment options

Can you try it with the --remote flag? That won't use the local OAuth callback, and instead prompt you to paste a code from the browser.

You must be logged in to vote
1 reply
@devops-inthe-east
Comment options

Thanks, that actually worked!

Answer verified by Admin Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.