cbepx-me / Anbernic-H700-RG-xx-StockOS-Modification

Anbernic H700 Stock OS Modification
https://drive.google.com/drive/folders/1uwCkGX3H-K09pj0VbB6hkS8I0_qhzrGY?usp=sharing
269 stars 4 forks source link

ssh server program - stay in program #35

Open Skeeve opened 3 months ago

Skeeve commented 3 months ago

Hi! Could you add the option to stay in the ssh server program?

Motivation:

I usually start the ssh server only when I need it.

Unfortunately a timeout (Screensaver?) often kicks in and I noticed that, when I enabled the SSH server and then start the program to enable/disable it, the connections do not time out.

So usually I enable and then restart it again until I transferred my files after which I disable it.

An option to "temporarily enable" would be great meaning: Enable and remain in the program until disabled.

Skeeve commented 3 months ago

@anilkusaksiz, @philippjess, and @DANILOCHINA. I have a solution for this.

(This is the version for Mod2.4!)

ActivateSSH-2.4-1.zip

The ZIP contains:

When you start ActivateSSH, the ssh server will be enabled until you press A or F.

philippjess commented 3 months ago

Thats helpful, thanks!

Skeeve commented 3 months ago

ping @anilkusaksiz, @philippjess, and @DANILOCHINA

Update for Mod 2.4

ActivateSSH-2.4-1.zip

Issues were:

  1. Update cleared res Directory, removing the PNG shown during activation
  2. Update uses another file for key-functions

Remaining issue:

PNG does not conform to 2.4 design.

michalpl7 commented 3 months ago

Is this one also compatible with this releases? https://github.com/exdial/anbernic-apps?tab=readme-ov-file#ssh-enabler

Skeeve commented 3 months ago

Is this one also compatible with this releases? https://github.com/exdial/anbernic-apps?tab=readme-ov-file#ssh-enabler

If you have cbepx mod 2.4, it should be compatible. For 2.5 I haven't checked yet.

michalpl7 commented 3 months ago

ping @anilkusaksiz, @philippjess, and @DANILOCHINA

Update for Mod 2.4

ActivateSSH-2.4.zip

Issues were:

  1. Update cleared res Directory, removing the PNG shown during activation
  2. Update uses another file for key-functions

Remaining issue:

PNG does not conform to 2.4 design.

This one is working but A button is not doing exit i had to reset console. Weird.

Skeeve commented 3 months ago

ARGH! I see the issue! That's a mistake I did. Will update…

Updated!

ActivateSSH-2.4-1.zip

Skeeve commented 3 months ago

Update for mod 2.5

If SSH is enabled, when started, it will not interfere with the settings. It will simply display "SSH Server enabled" and wait for you to quit. It won't disable the server!

If SSH is disabled, it will display "SSH Server active" and will disable SSH when you quit.

Activate_SSH-2.5.zip

michalpl7 commented 2 months ago

Now I could quit SSH server but this is weird I transfer or delete files on SD card using this SCP ( winscp ) and there is no effect when I plugged card to card reader all files remain and new ones didn't appear. I used 2.4-1.

Skeeve commented 2 months ago

I don't know what's going wrong there, but it's not the fault of my script.

Please double check you used the correct path.

Where did you transfer it too with scp and where were you looking when plugged into pc?

anilkusaksiz commented 2 months ago

Update for mod 2.5

If SSH is enabled, when started, it will not interfere with the settings. It will simply display "SSH Server enabled" and wait for you to quit. It won't disable the server!

If SSH is disabled, it will display "SSH Server active" and will disable SSH when you quit.

Activate_SSH-2.5.zip

Works great, thanks!