I try to connect my Squeezebox Touch with that command in the Mac terminal:
ssh -l root 192.***.***.**
The response is:
Unable to negotiate with 192.***.***.** port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
Why doesn't it work?
Thank you.
Results 1 to 4 of 4
Thread: Can't connect with SSH
-
2020-10-31, 14:31 #1
- Join Date
- Oct 2020
- Location
- Hamburg
- Posts
- 8
Can't connect with SSH
-
2020-10-31, 18:52 #2
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 799
Because the key/ciphers implemented on the Touch are old, and modern ssh clients won't, by default, use them. But you should be able to "force" use of the the older methods. I routinely use this on my macOS box:
Code:ssh -o KexAlgorithms=diffie-hellman-group1-sha1 -o Ciphers=aes128-cbc,3des-cbc,aes256-cbc root@myradio
-
2020-11-08, 07:46 #3
- Join Date
- Oct 2020
- Location
- Hamburg
- Posts
- 8
Your proposal works or as alternative: ssh -c aes128-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 root@myradio
Thank you
-
2020-11-08, 09:37 #4
- Join Date
- May 2010
- Location
- London, UK
- Posts
- 799
If you haven't discovered the ssh config file, you could bake the options into that. Refer to the manpage man ssh_config.
Here's a snippet from mine, stored in file ~/.ssh/config. My devices are named blackradio, whiteradio, and squeezeboxcontro.
Code:# These older SSH servers do not support modern key # exchange stuff or modern ciphers. Host blackradio* whiteradio* squeezeboxcontro* CheckHostIP no KexAlgorithms +diffie-hellman-group1-sha1 Ciphers +aes128-cbc,3des-cbc,aes256-cbc