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

Shehu Awwal
Shehu Awwal
Published in
2 min readJul 10, 2020

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 192.168.111.129 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
or
# 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
or
# svcadmn restart network/ssh

SSH Into Your Oracle Solaris

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

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c 3des-cbc root@192.168.111.129

Just change your username and password to what you need to login into.

That’s all, If you need explanation on the options of the ssh used, let me know.

Thanks to:
[+] https://unix.stackexchange.com/questions/402746/ssh-unable-to-negotiate-no-matching-key-exchange-method-found

--

--

Shehu Awwal
Shehu Awwal

Hacker — Passionate About InfoSec, Linux, Clouds, Containers, Virtualization, Distributed Systems And Architectures And New Trends.