SSH does not work in macOS Ventura for Unifi / Ubiquiti, among others

dsc0222

Some Mac users have found that SSH no longer works on their Mac since they have been updated to macOS Ventura 13 or newer. They usually see an error message when they try to ssh to another server along the lines of “no matching host key type found. Their offer: ssh-rsa“.

The obvious reason for this problem is that the version of OpenSSH that ships with macOS Ventura disables RSA signatures by default, so you can solve the problem by either using a more secure hash, or by simply allowing RSA signatures. We'll show you how to do the latter.

We are going to use nano because it is easy and user-friendly, but you can also use vi/vim or any other text editor of your choice.

We are going to modify the ssh_config file to allow RSA host key again, here is how to do this:

  1. Open the Terminal (via Spotlight or via the Utilities folder) and enter the following command string:

sudo nano /etc/ssh/ssh_config

You have to authenticate with the admin password.

2. Scroll all the way to the bottom of the ssh_config file, then add the following lines to the bottom of ssh_config:

HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

3. Hit Control+O to save, and Control+X to exit.

Your SSH problem should now be solved, we thought it would be super logical to share this information with you.

 

Recent blogs

Yakup Özcan
Blog
Yakup Özcan
De afgelopen maanden hebben wij Yakup leren kennen bij Analyst ICT. Yakup loopt bij ons stage vanuit de opleiding Software Development aan Fontys Hogeschool en houdt zich dagelijks bezig met verschillende AI-vraagstukken binnen onze organisatie. Van slimme automatiseringen tot het onderzoeken van nieuwe AI-toepassingen: hij duikt er met zichtbaar enthousiasme en nieuwsgierigheid in. Wat ons meteen opviel? Zijn combinatie van technische kennis, frisse blik en oprechte interesse in mensen én technologie. Ondanks zijn jonge leeftijd brengt Yakup niet alleen veel inhoudelijke kennis mee, maar ook een enorme drive om te leren, te experimenteren en vooruit te kijken. En precies daarom…
kwantumcomputers
Blog
What are quantum computers? And why is everyone suddenly talking about them?
Chances are you've been hearing more and more about quantum computers in recent months. In the news, on LinkedIn, or perhaps even during conversations about AI and cybersecurity. Especially now that a Dutch chip developer is gaining global attention with a new generation of quantum chips, the technology suddenly seems closer than ever. But what exactly is a quantum computer? And why is so much expected of it? From Ordinary Computer to Quantum Computer To understand quantum computers, it's helpful to first look at how a normal computer works. A traditional computer — like your laptop or server — works with bits. A…
frankberry
Blog
With our feet in the mud
Here we are. Not quite recognizable anymore, thanks to AI trying to protect children. Understandable, of course. But believe us: these really are Berry and Frank. More than ten years apart, but in reality, we've always been brothers from another mother. And what do we have in common? A lot... and at the same time, almost nothing. Berry is often the good cop. Calm, down-to-earth, and always working to get things done. I'm usually the bad cop. Direct, critical, and always looking for ways to improve. But that combination is precisely what works. What completely unites us, though, is our love for...

A newsletter

Superlogic right?