Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot ssh to AWS server when upgrade to macOS Sonoma version

When I try to login into AWS server from my MacBook Pro we got the error message below


# ssh -p 22 -i /Users/user_name/.ssh/id_ed25519 ubuntu@domain_name.com


Load key "/Users/user_name/.ssh/id_ed25519": invalid format

ubuntu@domain_namecom: Permission denied (publickey)


My colleague still in the macOS Ventura 13.5.2, which enables us to login into the AWS server via SSH.



In addition, the problem persists with all servers, not only with those aws... we have local server with ubuntu lts server version

Posted on Sep 28, 2023 9:29 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 6, 2023 5:34 AM

I had a similar issue. tried many tips, but in the end it helped to:

ssh-add ~/.ssh/bitbucket_key

the key is added this way to the agent.

Suddenly it worked...

Hope this helps.

Regards

7 replies
Sort By: 

Nov 16, 2023 3:40 AM in response to RODREG

Have you tried what's suggested at the link below? It worked for me on both Ventura and Sonoma. Just make sure you add the two lines in /etc/ssh/ssh_config, NOT in /etc/ssh/sshd_config.


https://osxdaily.com/2022/12/22/fix-ssh-not-working-macos-rsa-issue/?unapproved=9891007&moderation-hash=6fd5c544b1f4751707e021efd64f3855#comment-9891007

Reply

Cannot ssh to AWS server when upgrade to macOS Sonoma version

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.