User Tools

Site Tools


doc:appunti:linux:sa:ssh_config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:linux:sa:ssh_config [2022/02/15 18:09] – [No matching key exchange method] niccolodoc:appunti:linux:sa:ssh_config [2022/02/28 18:21] – [No mutual signature algorithm] niccolo
Line 20: Line 20:
  
 This will force the use of **diffie-hellman-group1-sha1** key exchange method, which is considered less secure nowday. This will force the use of **diffie-hellman-group1-sha1** key exchange method, which is considered less secure nowday.
 +
 +===== "no matching host key type" and "no mutual signature algorithm" =====
 +
 +Problem connecting from a modern (2022-02) **Termux** environment to an old **Debian 6 Squeeze**:
 +
 +<code>
 +Unable to negotiate with 192.168.0.250 port 22:
 +  no matching host key type found. Their offer: ssh-rsa,ssh-dss
 +</code>
 +
 +So the first option to add is **HostKeyAlgorithms**, but there is another and more subtle problem, because no error message is printer unless you add the **-v** option (for verbose), 
 +
 +<code>
 +debug1: send_pubkey_test: no mutual signature algorithm
 +debug1: No more authentication methods to try.
 +root@192.168.0.250: Permission denied (publickey).
 +</code>
 +
 +So also the **PubkeyAcceptedKeyTypes** is required:
 +
 +<code>
 +ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@192.168.0.250
 +</code>
  
doc/appunti/linux/sa/ssh_config.txt · Last modified: 2022/02/28 18:23 by niccolo