Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Question

Posted

Hi,

Is it possible to execute commands over ssh ? And register the response in the HC2 (virtual device)?

Thanks.

10 answers to this question

Recommended Posts

  • 0
Posted

It was, but Fibaro removed the OS.Execute from the box to avoid people gaining root access. Without root access, you won't know the login and therefore can't login via SSH. You could try a brute force attack to guess your way into the box, but it will take a lot of trial and error.

But the short answer is no, no root access and no ssh'ing into the box.

  • 0
Posted

Maestrea,

Unfortunately, root access it's not available for users due to safety concerns.

Regards

  • 0
Posted
Maestrea,

Unfortunately, root access it's not available for users due to safety concerns.

Regards

"Safety concerns" - what, the box will explode if someone ssh into it? Rubish! This is just to avoid having to deal with customers bricking their box and trying to thward anyone from revealing your code or creating a "hacked" version with different functionality. I think you ought to embrace the power of open source and allow customers to enable ssh'ing and modding of your core. It will probably even be a benefit for Fibaro as super users will be able patch bugs for you.

  • 0
Posted
I think you ought to embrace the power of open source and allow customers to enable ssh'ing and modding of your core. It will probably even be a benefit for Fibaro as super users will be able patch bugs for you.

That may be true, but at the same time it may lead to some abuses as HC controls security etc. So it's probably better to resign from that option.

Regards

  • 0
Posted
I think you ought to embrace the power of open source and allow customers to enable ssh'ing and modding of your core. It will probably even be a benefit for Fibaro as super users will be able patch bugs for you.

That may be true, but at the same time it may lead to some abuses as HC controls security etc. So it's probably better to resign from that option.

Regards

It's an ever-going discussion between open- and closed source...

IMHO there should be a choice. if you want to have access to the Debian system a warning should be presented with the consensuses and warranty issues. Then you can choose what is imported to you.

Other manufacturers made other choices. Like Synology and QNAP (NAS) and Mios Vera for example.

I do have questions about the way Fibaro implemented it, because the embedded system is Debian, which is an Open Source distribution. I don't know how the

Please login or register to see this link.

legal issues should be explained in this matter. I know that BSD can go from open source to closed source when strict legal regulations are followed.

As far as I'm concerned, I would choose the Open Source option, because I don't use Windows/Apple OS for private devices. I use Linux for several years now and I'm more then very happy with it. Other people may choose different with all the right personal reasons.

That's the beauty of choice...

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

  • 0
  • Inquirer
  • Posted

    Hi,

    And execute ssh commands to a remote NAS? And register the answer in a virtual device?

    Thanks.

    • 0
    Posted
    Hi,

    And execute ssh commands to a remote NAS? And register the answer in a virtual device?

    Thanks.

    ???

    • 0
    Posted

    I use phpseclib library and a php script for reboot my DD-WRT router by ssh.

    This is the code:

    Please login or register to see this code.

    • 0
  • Inquirer
  • Posted

    Hi rusconidesigner,

    do you have implemented this script in the HC2?

    • 0
    Posted

    Yes,

    I had the problem to reboot remotely the router because the DDNS sometimes stopped working. Also with DDNS ko the HC2 is always up.

    The only way to reboot it, was ssh.

    It's no more difficult. A virtual device that calls the php script. Read the guide of the library and use the script as an example.

    Obviously you must have a web server with php installed.

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...