I have the problem mentionned on:
Centos 7.4
OpenSSH_7.4p1
Following this tutorial: https://www.infosecmatter.com/solution- ... te-errors/
I added the missing keys but sometime, following an sftp connexion on the server, I have again these two errors:
Code: Select all
Nov 22 17:08:08 xxx sshd[2028]: Unable to negotiate with xx.xx.xx.xx port 45975: no matching host key type found. Their offer: sk-ssh-ed25519@openssh.com [preauth]
Nov 22 17:08:23 xxx sshd[2045]: Unable to negotiate with xx.xx.xx.xx port 2068: no matching host key type found. Their offer: sk-ecdsa-sha2-nistp256@openssh.com [preauth]
below, my /etc/ssh_config, I added the key at the end of my config file:
Code: Select all
Ciphers 3des-cbc,blowfish-cbc,cast128-cbc,arcfour,arcfour128,arcfour256,aes128-cbc,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com
MACs hmac-sha1,hmac-sha1-96,hmac-sha2-256,hmac-sha2-512,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha1-etm@openssh.com,hmac-sha1-96-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-md5-etm@openssh.com,hmac-md5-96-etm@openssh.com,hmac-ripemd160-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com
HostKeyAlgorithms ssh-ed25519,ssh-ed25519-cert-v01@openssh.com,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-rsa-cert-v01@openssh.com,ssh-dss-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com
KexAlgorithms diffie-hellman-group1-sha1,diffie-hellman-group14-sha1,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group-exchange-sha256,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,curve25519-sha256,curve25519-sha256@libssh.org,gss-gex-sha1-,gss-group1-sha1-,gss-group14-sha1-
Is there a problem/mismatch in my config file ?
Is this my openssh obsolete ?
Do I have to upgrade ssh ?
By advance thanks for your help !
Jean