Posts: 6
Threads: 2
Joined: Aug 2018
Reputation:
0
I would like to be able to send commands to my moode player via ssh from my Android or iPhone . I tried several Android apps and my MacBook but the attempts to login to my player are rejected. I can use web ssh successfully. Any ideas what I'm doing wrong? I'm using pi and moodeaudio credentials.
Thanks
Posts: 6
Threads: 2
Joined: Aug 2018
Reputation:
0
The moode player is attached to the wireless network in my home. I connect to the same WiFi network and attempt to access the moode player via ssh just like I do when I access moode via the web interface via it's ip address. Is debug info available from the moode player? I'm not getting any significant debug info from the android apps or my macbook, just that connection refused. I looked at the system info log in moode but no entries related to a refused login attempt.
Posts: 451
Threads: 11
Joined: Sep 2019
Reputation:
28
12-01-2019, 05:24 PM
(This post was last modified: 12-01-2019, 05:25 PM by vinnn.)
A "connection refused" will normally mean the target is on the network but nothing is listening on the target port, in this case ssh on port 22. Thus sshd isn't running.
Have you enabled the ssh server in Moode's settings (under System)?
Posts: 6
Threads: 2
Joined: Aug 2018
Reputation:
0
Yes, I've added the file ssh and ssh server is enabled.
Posts: 6,013
Threads: 176
Joined: Apr 2018
Reputation:
234
12-01-2019, 07:14 PM
(This post was last modified: 12-01-2019, 07:15 PM by TheOldPresbyope.)
But a default moOde installation starts the sshd service already, listening to port 22. The notion that you need a blank ssh file in the root directory at first start-up is a holdover from the way one configures bare Raspbian. Tim's taken care of that.
Bottom line, you should be able to ssh into your moOde player from the get-go using the stated credentials.
That System config setting starts the "SSH term server" which enables use of the "Web SSH terminal". This "terminal" accesses a specialized web service listening to port 4200.
If the sshd service is running and listening on port 22 and you still can't connect, then one has to suspect there is something interrupting the passage of packets to the port. Typically a firewall is the culprit.
Regards,
Kent
Posts: 6
Threads: 2
Joined: Aug 2018
Reputation:
0
I decided to download the latest version of moode & now ssh works.