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

apple business
Blog
Apple Business: Easier device management… but…
Managing laptops, smartphones, and tablets within your organization is becoming increasingly complex. Especially as employees work hybrid and you want to maintain control over security, updates, and usage. Apple is responding to this with Apple Business: a new platform designed to simplify device management. But the real question is: does this completely solve your challenges? The problem: growing number of devices, less oversight. Many SMEs recognize this: New employees receive devices that need to be set up manually. Apps and settings differ per user. Security is difficult to keep consistent. IT spends a lot of time on management and support. This leads to frustration,…
apple header
Blog
Apple 50 Years: 50 Years of Daring to Think Differently
This year, Apple celebrates its 50th anniversary. A milestone that cannot simply be overlooked. Because whether you are a fan or not: Apple has permanently changed the way we work, communicate, and create. At Analyst ICT, we are proud to be part of this ecosystem. As an Apple Technical Partner, we work daily with technology that is not only powerful but, above all, logical and pleasant to use. A different perspective on technology Apple has always distinguished itself by one simple conviction: technology should help people, not hinder them. No unnecessary complexity, but simplicity and ease of use. That aligns seamlessly...
browser password
Blog
Why saving passwords in your browser is not a good idea
The blog post below was created in response to a question during our engineering meeting. Every two weeks, we get together with all of our technical staff to discuss the latest developments in technology or with clients. Good client questions also arise during these meetings, such as this one. Time to do some research. Thank you, Wiebe! You've probably experienced this: you log in to a website, and your browser asks if it should remember your password. Convenient, fast, and you don't have to remember anything. However, there's a risk involved. In practice, we see that many security incidents start with something small. Like saving passwords…

A newsletter

Superlogic right?