[S922X] Ugoos AM6(+), Help & Support

SSH “connection refused”.

This is a brandnew install of 21.2-Omega. Currently on USB stick, but want to get dualboot. Hence I need SSH access to run the ceemc command. I however always get a “connection refused”. I tried to create an sshd log file by modifying the start scripts to write to /storage/sshd.log, but after an attempt the log size is still zero bytes. Ping works fine, as does ssh into the nas attached to the same switch. SSH is enabled in services. I am puzzled.

Every hint is highly appreciated, I have not ideas anymore. Testing port 22 fails:

Test-NetConnection -ComputerName 192.168.178.21 -Port 22 WARNUNG: TCP connect to (192.168.178.21 : 22) failed
ComputerName : 192.168.178.21
RemoteAddress : 192.168.178.21
RemotePort : 22
InterfaceAlias : WLAN
SourceAddress : 192.168.178.51
PingSucceeded : True
PingReplyDetails (RTT) : 7 ms
TcpTestSucceeded : False

How are you trying to connect to CE? Windows, Mac, Linux, Putty?

Have you tried

ssh -vvv root@192.168.178.21

I tried Windows/putty and Linux command line. Here your desired output:

$ ssh -vvv ugoos
OpenSSH_8.9p1 Ubuntu-3ubuntu0.13, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /home/coocooc/.ssh/config
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug1: /home/coocooc/.ssh/config line 5: Applying options for ugoos
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 192.168.178.21 is address
debug3: expanded UserKnownHostsFile ‘~/.ssh/known_hosts’ → ‘/home/coocooc/.ssh/known_hosts’
debug3: expanded UserKnownHostsFile ‘~/.ssh/known_hosts2’ → ‘/home/coocooc/.ssh/known_hosts2’
debug3: ssh_connect_direct: entering
debug1: Connecting to 192.168.178.21 [192.168.178.21] port 8022.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 192.168.178.21 port 8022: Connection refused
ssh: connect to host 192.168.178.21 port 8022: Connection refused

Ugoos:/ # ps waux | grep ssh
3836 root      0:00 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
4340 root      0:00 grep ssh
Ugoos:/ #
$ telnet ugoos 22
Trying 192.168.178.21…
Connected to ugoos.fritz.box.Escape character is ‘^]’.
SSH-2.0-OpenSSH_9.8

So the service should be listening. Why can’t I login?

I installed Web-SSH and can reach port 11111 there. So my urgent problem is solved. Nevertheless ssh should work directly. Anything how I can help to find the root cause of the problem? I even did the whole process again (fresh USB image, toothpick, ssh activation both at start and confirming it later in menus), but still no connection.

You are messing with so many things and ports so it is impossible to understand what is what.

SSH just works if enabled from CE settings.

You are using telnet to port 22 but ssh to port 8022.

Because You configured something special, nobody knows what & why

Hey Y’all. I’m facing an issue with my UR01 remote that came with this device. I’m runing coreelec build and the remote was working fine. I stopped using the device for around 6 months and when I tried to use it yesterday, my remote suddenly started to blink red light. I replaced the batteries, but that blinking never stopped. Any idea why it’s happening and what should I do to get it working? Thanks in advance.

Pair it again?

From your debug log, the problem is very clear:

debug1: Connecting to 192.168.178.21 [192.168.178.21] port 8022.
debug1: connect to address 192.168.178.21 port 8022: Connection refused
ssh: connect to host 192.168.178.21 port 8022: Connection refused

:backhand_index_pointing_right: That means:

  • Your client successfully resolved the host and tried to connect to 192.168.178.21 on port 8022.

  • The TCP connection was actively refused, which means something on that IP is reachable but nothing is listening on port 8022 (or a firewall is rejecting it).

So the issue is not with your SSH client, but with the target (ugoos at 192.168.178.21):

  1. SSH server not running

    • The device may not have an SSH daemon running, or it’s not enabled.
  2. Wrong port

    • You’ve told SSH to use port 8022. Maybe the SSH server is actually listening on the default 22, or another port.

    • Try:

      ssh -p 22 ugoos
      
      

      or check which port it’s listening on.

I tried, but the remote wasn’t showing in the devices. I booted into android just so I can pair, but didn’t work.

Also the pairing needs to be done only for bluetooth right? IR should work out of the box iirc. When I installed coreelec, it worked without doing anything.

IR not work out of the Box, you need the UR01 remote.conf Files.

Yes I added this before installing coreelec. Like I said, it was working fine earlier but suddenly it started to blink. Also is there a way to reset only remote? So that I can pair it again on Android.

I’m having the same issue. Never had a problem in the past (and we’re talking over 20+ CE installations on my AM6B Plus).

I even tried connecting using the exact same configuration that worked previously and now it is being refused so I can’t install properly and lose the SD Card boot setup.

Hello,

I am using S922 box for CE. I have two distinctly different display devices. JVC projector, that plays 3D and works best on SDR BT2020 for UHD files. Also have a fully DV capable TV.

I wanted to see how I can change DV configuration based on the display without clicking multiple options to make this family friendly. Ideally I would make it fully automated based on the display either through coreelec itself identifying display or through SSH or similar mechanism using a seprate automation, eg eventghost, homeassistant (which I can do myself as long as there is a way to pass commands to coreelec). Alternatively, a one-click option would work as well.

Thanks

has anyone noticed hdr or sdr bit too warm in NO?

@Portisch in 1017 build hdr and sdr has too warm colors

Just tested 20251018 bad playback, dropping frames. 20251017 is better and has smooth playback but colors are too warm in HDR and SDR

Am6b+

Anyway after couple of power cycle it got better but its still not stable yet

It’s your display (Sony tv?) problem, not CE nor AM6B+ problem.

1 Like

I only have a problem with HDR, while Dolby Vision works fine and the issue happens only with some UHD rips. The TV works fine with other devices. Also, I notice an improvement in picture quality and playback with every new firmware update. Whereas 1017 was most stable in playback but colors were too warm.

Or its hdmi handshake problem? I wonder if you do changing in video codecs or something in every firmware.

You can answer it by Yourself

All i understand its hdmi handshake problem. I see some of you use denon avr and vertex fury. Does it help?