I have a X96max with S905X2, 4G and Gigabit and Coreelec 20.1 installed. I have bought a Vontar X4 with S905X4, 4G and Gigabit.
I have booted Coreelec 20.1 in this new Vontar, from USB, tested ssh connection and everything perfect.
Then, I have done a backup from coreelec in X96max(snapshots excluded), imported to Vontar and restored from coreelec. It has rebooted and I have all the addons, configs, everything fine.
One thing that is not included in backup is fixed IP but this is not a big deal, so no problem.
I have tested SFTP connection and OK
Buuuut, the issue comes when I try to connect via SSH. It gets connected but in less than a second, Coreelec closes the connection. I have tried connecting from android phone, from windows, from putty, ⌠and with the same result so, my thinking is that because of the backup, Coreelec detects that Isomething has changed, and closes the SSH connection as soon as it gets established.
I have tried with âssh root@IP -vâ and this is what console shows after establishing the connection (before, what it shows is the same than with my old device when there is no problem so I am not pasting it):
##############################################
# CoreELEC #
# https://coreelec.org #
##############################################
CoreELEC (official): 20.1-Nexus (Amlogic-ne.arm)
Machine model: Amlogic
CoreELEC dt-id: sc2_s905x4_4g_1gbit
debug1: client_input_channel_req: channel 0 rtype exit-signal reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Connection to 192.168.1.171 closed.
Transferred: sent 1976, received 2988 bytes, in 0.2 seconds
Bytes per second: sent 11854.1, received 17925.1
debug1: Exit status -1
Could anyone help me? I would like to not start from scratch setting up all the addons. Thanks in advance
Hello, I have tried this with no success.
Initially I have use the command ssh root@ip âvi /storage/.profileâ but this creates just an empty file.
So, I transfered this file (because SFTP is working well) from coreelec to my computer, I have editted it and added:
#!/bin/sh
bash
Then, saved file and transferred back to coreelec. Rebooted the coreelec just in case and I have still the same ssh issues
I have tried, in addition, to copying this file to /storage/.config/ but same result.
(I am booting Coreelec from USB stick, it is not installed on internal memory)
Thanks for trying anyway⌠do you think there is something else I can try? Thanks again!
Can you try to do a
ssh root@YOURIP â/bin/bashâ
it should log you in.
it wonât output the shell. it will look weird but you should be logged in.
If that does not work then you have another problem.
Hello and thanks for answering again.
You are right, with ssh root@YOURIP â/bin/bashâ I am in, it looks weird at all, I thought I was not in and computer was âthinkingâ but not, I am in with that command.
So this is a workaround but I think is the only thing I can get now ⌠hopefully, this will totally get fixed by upgrading to Coreelec 21.0.
Thanks a lot !!!
now that you are in⌠delete the .profile you transferred via sftp and create it locally using vi.
Maybe it fixes your issue. Mine did not fix with CoreELEC 21.0 nightly update.
Now that I got time to write one potential reason for this behaviour would be if you had switched rootâs shell (e.g. to bash) before, as sysupgrading will (and must) remove additionally installed binaries during the upgrade, leaving you with your old configuration override to use /bin/sh as rootâs shell, without the shell being installed or having proper permissions. So, something messed up your default shell on paswd file. if you create the profile it will force it to use bash binary.
I have tried what you wrote and no success either.
I am not using directly âviâ because when I do, it shows âodd charactersâ in the console.
For example, with an existing .profile file, this happens when I do it directly:
I do not know if came to this point wait for an update could fix this or if I should give up on loading a âcoreelec backupâ from a different device⌠and is a âshitâ because everything else is working as it was in the other device, so thinking about starting over and install repositories, addons, configurations ⌠ufff
So, some things behave differently using ssh and single or double quotes.
Canât help you much on that as I do not use windows shell. You can try and install Cygwin64 and do all the commands from there for better compatibility.
That weird chars are ANSI control codes. powershell does not support that. so you will get weird codes with powershell and very weird representation of everything. You have better output using a normal windows shell instead of powershell (cmd.exe). Probably you are creating the files incorrectly because of that.
I do recall there was a one liner that could help fixing the locale that helped with login issues also (actually I think the one line came from @vpeter ) Maybe you can try it on Cygwin
Hello to everyone⌠it came out that yesterday I did a clean install of coreelec to avoid this issueâŚ
So, the day I receive more answers is the day I decided to give up on thisâŚ
Sorry, and thank you all