Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4

Hybrid View

  1. #1
    Junior Member
    Join Date
    Oct 2020
    Location
    Hamburg
    Posts
    8

    Can't connect with SSH

    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.

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    802
    Quote Originally Posted by pixx View Post
    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.
    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

  3. #3
    Junior Member
    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

  4. #4
    Senior Member
    Join Date
    May 2010
    Location
    London, UK
    Posts
    802
    Quote Originally Posted by pixx View Post
    Your proposal works or as alternative: ssh -c aes128-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 root@myradio
    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
    So now I just log in as, e.g., ssh root@blackradio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •