ssh login to solaris10 with error.
Jan 19 11:02:51 node1 sshd[7489]: fatal: no common kex alg: client ‘diffie-hellman-group1-sha1’, server ‘gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==’
This problem is caused by the ssh key, you need to regenerate the rsa and dsa key.
root@node1 :/etc/ssh #> ls -ltr
total 194
-rwxr–r– 1 root sys 861 Jan 22 2005 ssh_config
-rwxr–r– 1 root sys 88301 Jan 22 2005 moduli
-rwxr–r– 1 root root 887 Nov 7 2010 ssh_host_rsa_key
-rwxr–r– 1 root root 227 Nov 7 2010 ssh_host_rsa_key.pub
-rwxr–r– 1 root root 668 Nov 7 2010 ssh_host_dsa_key
-rwxr–r– 1 root root 607 Nov 7 2010 ssh_host_dsa_key.pub
-rwxr–r– 1 root sys 5026 Nov 7 2010 sshd_config
Delete the original key
root@node1 :/etc/ssh #> rm -rf ssh_host_*Generate a new key
root@node1 :/etc/ssh #> /lib/svc/method/sshd -c
Creating new rsa public/private host key pair
Creating new dsa public/private host key pairRestart ssh service
root@node1 :/etc/ssh #> svcadm restart ssh
Similar Posts:
- An error is reported when starting sshd in the docker container
- [Solved] SSH connect error: permission denied, please try again
- [Solved] Forbid root, handle error sudo must be owned by uid 0
- Too many authentication failures for root
- How to Solve network error: software caused connection abort (Step-by-step Tutorial)
- [Solved] MySQL Connect Error: Can’t connect to MySQL server on ‘ ‘(61)
- SSH Connection Error: no matching host key type found. Their offer: ssh-dss [Solved]
- [C language] Multi-file compilation under linux
- How to Fix Issue: SSH Server CBC Mode Ciphers Enabled
- [Solved] SSH is disconnected as soon as it is connected