Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[FaJoSSHD][1.10.04] OpenSSH server
#1
[Image: 2017_01_31_23_11_44_Mozilla_Firefox.png]

Module is available for:

x64_OS5/OS7 - last version 1.10.04
x86_OS5/OS6 - last version 1.10.04
ppc_OS6 - last version 1.10.04

Download:

"You have not unlocked the download links. Read here to check how you can unlock them."

binaries updated to
OpenSSL - 1.0.2j
OpenSSH - 7.4p1

Remove existing version before installing this latest

This is FaJo module updated for x86 and x64 to latest version and to support OS7
Thx FaJo for his great modules

http://www.fajo.de/main/en/thecus/modules

This module implements an OpenSSH server and provides a basic status and configuration page that allows to fully configure the server. This module is meant to replace the older SSHD module.

OpenSSH is a FREE version of the SSH connectivity tools that technical users of the Internet rely on. OpenSSH encrypts all traffic (including passwords) to effectively eliminate eavesdropping, connection hijacking, and other attacks. Additionally, OpenSSH provides secure tunneling capabilities and several authentication methods, and supports all SSH protocol versions. OpenSSH is developed by the OpenBSD Project.

Configuration
After enabling the module the module status and configuration page can be accessed. The SSH daemon listenes on port 10022 on all available interfaces - this can be changed through the module configuration page. To login use the use name root along with the admin password.

Using the Wrapper Scripts
Since release 1.04.00 of the module two platform independend wrapper scripts are available to remotely trigger a reboot or shutdown of the NAS. The scripts are
/raid/data/module/FaJoSSHD/system/sbin/wrapper.reboot
to reboot the NAS
/raid/data/module/FaJoSSHD/system/sbin/wrapper.shutdown
to shut the NAS down (poweroff)
To remotely trigger one of the actions you just need to connect to the NAS through ssh as root and run one of the scripts (replace NASIP by the IP address of the NAS). Example:
ssh -l root NASIP /raid/data/module/FaJoSSHD/system/sbin/wrapper.shutdown
To automate the action you may use public keys. Just create a keypair for every action on your client and then add a line similar to the one below for each action to the file /raid/data/module/FaJoSSHD/system/etc/ssh/users/root/authorized_keys:
command="/raid/data/module/FaJoSSHD/system/sbin/wrapper.shutdown" ssh-rsa .....
The "ssh-rsa ....." has to be replaced by the public key to be used for shutdown in the example above.
Now you can run
ssh -l root -i KEYFILE NASIP
with KEYFILE replaced by the private key file to use and NASIP replaced by the IP address of the NAS.
See also How to remotely shut down the NAS [FaJoSSHD].
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#2
updated to 1.10.03
fixed Module WebUi not show on firmware above 3.02.00.0
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#3
(04-06-2017, 02:00 PM)outkastm Wrote: updated to 1.10.03
fixed Module WebUi not show on firmware above 3.02.00.0

this update breaks the WebUI of the modulepage on OS5 (x64). It does not show any content in the webmenu anymore
Reinstalled 1.10.02 and all working again
Reply
#4
Ok...i will test on OS5 to see if i can find a way to work on both versions
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#5
Updated to 1.10.4
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#6
I want to do a scheduled reboot but the wrapper scripts don't work on OS7.

Doe anyone know how to invoke a scripted graceful reboot on OS7?
Reply
#7
you can create your reboot script and use FaJoCron to schedule execution.
https://pirinel.ro/showthread.php?tid=67

But what do you mean OS7 is not supporting wrapper script ?
------------------------------------------------------------------------
[Image: linkedinbutton.jpg][Image: btn_donate_LG.gif]
Please respect my work and dont share my modules
Reply
#8
On a 64-bit system the FaJoSSHD reboot wrapper script will try to execute /img/bin/sys_reboot. On my OS7 64-bit systems (N5550 and N5810) there is no such file in /img/bin. In attached file is a screenshot of my /img/bin directory.


Attached Files Thumbnail(s)
   
Reply
#9
after some looking i found the reboot and poweroff binaries in /sbin(OS7 N4810).
i assume these are the same ones that are called when these functions are selected from the gui.
is this what your looking for?
[-] The following 1 user says Thank You to Blackbear199 for this post:
  • Eduard
Reply
#10
Hi Blackbear199, these are not the ones I am looking for. Invoking a reboot with the reboot binary in sbin does not gracefully shutdown OS7. After a reboot invoked in this way you will see a warning in the log: "WARNING The system [N5550] last shutdown is abnormal."
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)