Mopidy Discourse

Musicbox using ssh & sftp from Ubuntu 20.04

I have Raspberry pi v1 model B running v0.7.0 Release Candidate 7 at IP address 192.168.1.14

In Ubuntu Terminal for ssh, I get
{
ssh 192.168.1.14 Unable to negotiate with 192.168.1.14 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1 } This works though { ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -oHostKeyAlgorithms=+ssh-dss root@ 192.168.1.14
{ This bit first time only
The authenticity of host ‘192.168.1.14 (192.168.1.14)’ can’t be established.
RSA key fingerprint is SHA256:**********************************.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘192.168.1.14’ (RSA) to the list of known hosts.
}
root@ 192.168.1.14’s password: musicbox


(_____ () () () ( \
___) ) _ _ _ _ _ ___ _ ____ ) ) ___ _ _
| / | | |||| | | | |/) |/ ) __ ( / _ ( \ / )
| | | | | | | | |
| |
| ( (
| |
) ) |
| ) X (
|| || || ||/(/||_)/ _(/ _)

Welcome!
root@MusicBox:~#
}

In Ubuntu Terminal for sftp, I get

$ sftp 192.168.1.14
Unable to negotiate with 192.168.1.14 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
Connection closed.
Connection closed
}
This works though
{
sftp -o KexAlgorithms=diffie-hellman-group14-sha1 root@ 192.168.1.14
root@ 192.168.1.14’s password:
Connected to 192.168.1.14.
sftp>
}

In Nautilus (Ubuntu’s File Explorer) using the “Connect to Server” option I am able to connect to my Kodi Libreelec ver 9.2.6 using the simple string “sftp://192.168.1.10/”, it will prompt for username and password. This enables one to edit, drag and drop etc without fluffing about on the command line. Very nice.
However this doesn’t work for the Pi Musicbox. “sftp://192.168.1.14/” results in “Unable to access location” message, no prompts for any passwords or options. I have tried including some of the command line options that worked within the string to no avail.

Presumably “diffie-hellman-group14-sha1” is an old maybe insecure key exchange method presumably deprecated from newer versions of Ubuntu so would not want to install this on my system permanently.

Would like to know if any body has a work around for this.

Thanks in advance

Edit - Easy solution, sort of.
add the following to your ~/.ssh/config
{
KexAlgorithms=+diffie-hellman-group14-sha1
}
If the config file does not exist then just create one with the single line entry.
Reboot
Nautilus "Connect to Server option will now work with the string "sftp://192.168.1.14. Click “Connect”. It will then prompt for the user name and password . The top level folders on the Pi will be displayed including the “root” and “music” folders. However if you Bookmark it to make it persistent it adds “/root” to the string so you end up in the “root” directory from which there is no escape as Nautilus thinks its at the top of the tree. So no point in Bookmark it. Strange.