SSH Into Solaris 10: Fixing No Matching Key Exchange Method Found

I have really imagine myself managing Solaris 10, I really want to go back to GNU/Linux, I can’t please. ?

I have been learning Solaris for some months now and decided to get back to working on the terminal and trying to ssh into the server but was having this error.

Unable to negotiate with port 22: no matching key exchange method found. Their offer: gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

SSH Configuration In Solaris

You have to check if the SSH Daemon is running on your system first, which by default it runs but do check that again.

# /usr/bin/svcs ssh

And it shows the STATE either online or disabled, But incase it is disable enable it with the following command.

# svcadm enable ssh
# svcadm enable network/ssh

Configuring SSH Config File

vi /etc/ssh/sshd_config

From your configurations of SSH of config file, I enabled the following.

PermitRootLogin yes
PasswordAuthentication yes

And then save and restart the sshd daemon with,
Note: I permit root login and also use PasswordAuthentication for some reasons, But you need to disable both in a production or enterprise server for security reasons.

# svcadmn restart ssh
# svcadmn restart network/ssh

SSH Into Your Oracle Solaris

I was having an issue with the Cipher key exchange method in other to fix this.

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc [email protected]

Just change your username and password to what you need to login into.
That’s all, If you need an explanation on the options of the ssh used, let me know.
Thanks to:


Posted by Shehu Awwal

DevOps Engineer, Interests around Kubernetes, Infrastructure, Security & Automation.

Leave a Reply

Your email address will not be published. Required fields are marked *