Ssh and bonjour on at silver

i am trying to get access to the sound via airplay. from kodi wiki it appears that i have to install bonjour. i am having no luck doing that directly. i decided to try via ssh but even though ssh server shows as installed and even though i can ping the box i keep getting connection closed

any thoughts on either? it would seem fixing ssh is first step

If you’re trying to SSH from a Windows box using PuTTY, ensure that you’re on the latest version.

Re. bonjour, that’s an Apple package; Linux uses avahi, which should already be installed on OSMC.

thanks for the response
my core systems are apple/mac

i tried accessing ssh visa terminal and keep getting the connection closed which usually indicates a server issue

with the default installation nothing “sees” the osmc as a speaker. The idea of installing bonjour came from a kodi forum

You can run ssh with various debug levels using -v, -vv and -vvv. Usually -v gives enough information. So:

ssh -v osmc@<ip-address>

As ai suspected the ssh configuration on the osmc box is hosed

I guess I am going to have work out command line access to fix it

Blockquote
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to 10.0.1.88 port 22.
debug1: Connection established.
debug1: identity file /Users/jason/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/jason/.ssh/id_ed25519-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.0.1.88:22 as ‘osmc’
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 10.0.1.88 port 22

Blockquote

well i can’t get a command prompt on the atv running osmc, can’t figure how to change these bad setting or even figure where they cam from

life in the open systems

Are you sure the problem is on the ATV? The errors indicate to me that they are on your mac:

debug1: identity file /Users/jason/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory

Do you have another system you could try from?

Tried from a FreeBSD bos and got a similar error

Blockquote
OpenSSH_7.2p2, OpenSSL 1.0.2k-freebsd 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to 10.0.1.88 [10.0.1.88] port 22.
debug1: Connection established.
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_rsa type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_rsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_dsa type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_dsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_ecdsa type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_ecdsa-cert type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_ed25519 type -1
debug1: Fssh_key_load_public: No such file or directory
debug1: identity file /home/jason/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2 FreeBSD-20161230
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Debian-5+deb8u3
debug1: match: OpenSSH_6.7p1 Debian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug1: Authenticating to 10.0.1.88:22 as ‘osmc’
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 10.0.1.88 port 22

Blockquote

well never got ssh to the atv1 to work. Tried FreeBSD, mac os x and iOsnn

none of the IOs apps work. maybe time try andoid

1 Like

As you said, it looks like an issue on the atv1 box.

I have no practical experience of using an atv1, but if SSH is borked, you’ll either need to get keyboard CLI access or I guess it’s reinstall time.

If you do get CLI access, I’d first check if SSH is enabled and running: systemctl status ssh.

You can also recreate the SSH keys with sudo dpkg-reconfigure openssh-server. (You might need to delete the old ones first - /etc/ssh/ssh_host_*)

Finally, you can always reinstall SSH server: sudo apt-get install --reinstall openssh-server