Some Mac users have noticed that SSH is not functioning on their system after upgrading to macOS Ventura 13 or later versions, including Sonoma. Usually, they encounter an error when trying to connect via SSH to another server stating “no matching host key type found. Their offer: ssh-rsa“.
The cause of this issue seems to be that the OpenSSH version included with MacOS Ventura disables RSA signatures by default. You can fix this by either using a more secure hash method or by enabling RSA signatures again. Here, we'll guide you through the latter approach.
We will use nano as it's simple and user-friendly, but feel free to choose vi/vim or any other text editor you prefer.
How to Fix SSH Not Working with RSA Signatures on macOS Sonoma / Ventura
We will edit the ssh_config file to re-enable RSA host keys. Here's how to proceed.
Launch the Terminal (you can use Spotlight or access it from the Utilities folder) and run the following command:
sudo nano /etc/ssh/ssh_config
You’ll need to enter your admin password for authentication.
Navigate to the end of the ssh_config file and append these lines at the bottom:
HostkeyAlgorithms ssh-rsaPubkeyAcceptedAlgorithms ssh-rsa
Press Control O to save your changes, then Control X to exit the editor.
Attempt to use SSH to connect to a server that uses RSA keys once more; it should now work properly.
While working in the terminal, you may also want to enable SSH if you intend to accept incoming connections to your Mac. For instance, you might want to remotely access your Mac from an iPad or another device via the command line, which this will allow.
Even after verifying that SSH is enabled in MacOS, this shouldn't affect outbound SSH connections. However, some users report that doing so has resolved their issues. Therefore, give it a try. Obviously, this would matter if the machine you're connecting to is a Mac running SSH, since some Mac users have observed that SSH is disabled by default in MacOS Ventura & macOS Sonoma, even if it was previously activated before updating the system software.
The above is the detailed content of How to Fix SSH Not Working on MacOS Ventura / Sonoma. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

As most Microsoft Word users are aware, it's common to end up with unwanted blank pages in a Word document. These typically appear at the end of the file and often get printed or included when converting to PDF. This issue can occur regardless of whe

You’ve had your Mac for a few years, and you’re starting to feel the effects of your device aging—the battery doesn’t hold up as well as it used to. To avoid getting stuck with a dead Mac, you have no choice but to take your charger e

The Focus Modes functionality comes with several pre-set options such as Work, Driving, Sleep, and users are also free to create custom ones for any scenario imaginable. Should you find yourself not needing a multitude of Focus modes—whether because

Apple has made available macOS Monterey 12.6.2 and macOS Big Sur 11.7.2 for users still operating on previous-generation Mac systems. These updates are offered independently of macOS Ventura 13.1.Both macOS Monterey 12.6.2 and macOS Big Sur 11.7.2 co

If you trust Siri to accurately transcribe your speech into text and send it as a message, you can activate a setting that lets Siri send messages automatically from your iPhone without asking for confirmation first.With the confirmation feature enab

Some users of macOS Ventura have noticed that file sharing between a Mac running macOS Ventura and other devices like iPhones, iPads, Windows PCs, and certain NAS drives such as Synology models is not functioning properly. For many individuals, confi

Some users of Mac computers running MacOS Sierra and MacOS High Sierra have reported issues when trying to log in to an Apple ID or iCloud via System Preferences, as well as problems accessing iCloud.com using Safari. In addition, Safari fails to loa

Creating a bootable macOS Ventura installer can be desirable for many advanced Mac users, whether to perform clean installations, install macOS Ventura 13 onto multiple machines without having to re-download the installer, to serve as a recovery boot
