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

Google zoekmachine
Blog
Google Is Changing Completely: What Does That Mean For Your Business?
For years, Google pretty much always worked the same way. You'd type in a search query, get a list of websites, and click through to the page that provided the best answer. But that model is now changing rapidly. Google is working on its biggest search engine overhaul in over 25 years. AI plays the leading role in this. And honestly? This will have a massive impact on businesses, websites, and how customers find you online. At Analyst ICT, we closely follow these developments. Not only because it's technically interesting, but especially because it has direct consequences for SMEs. From searching to getting a direct answer with Google...
Yakup Özcan
Blog
Yakup Özcan
Over the past few months, we've gotten to know Yakup at Analyst ICT. Yakup is doing an internship with us through the Software Development program at Fontys University of Applied Sciences and is involved daily with various AI challenges within our organization. From smart automations to researching new AI applications: he dives into them with visible enthusiasm and curiosity. What immediately struck us? His combination of technical knowledge, fresh perspective, and genuine interest in both people and technology. Despite his young age, Yakup brings not only a wealth of substantive knowledge but also a huge drive to learn, experiment, and look ahead. And that's precisely why...
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…

A newsletter

Superlogic right?