SSH Error After Upgrading macOS to Tahoe or Golden Gate - Bad Key Types

Mindwatering Incorporated

Author: Tripp W Black

Created: 11/11 at 01:48 AM

 

Category:
OS X Tips & Hints
General Mac Tips

Issue:


After upgrading again to Golden Gate, error is back when trying to use SSH:
/Users/myadminid/.ssh/config-ssh line 5: Bad key types '+ssh-dss'.


Resolution:


This is the same error we had upgrading to Tahoe. All of our servers do not need ssh-dss. There is no reason for the error.
When looking at the ~/.ssh/config-ssh file, we noticed we still had an entry for an old server which was upgrading a while back.

There is no desire or need to download an old SSH version which still allows support for the old ciphers.
The other option is simply to comment out those server lines, and save.
$ sudo vi ~/.ssh/config
#Host 10.0.10.40
# HostName 10.0.10.40
# KexAlgorithms +diffie-hellman-group1-sha1
# HostKeyAlgorithms +ssh-dss
# Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc
<esc>:wq (to save)

Afterwards, SSH was working again.


previous page

×