Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't access SSH #23

Open
alberto072710 opened this issue Jun 12, 2022 · 5 comments
Open

Can't access SSH #23

alberto072710 opened this issue Jun 12, 2022 · 5 comments

Comments

@alberto072710
Copy link

Hello,

First of all thank you very much for your work. I have successfully installed the software. But when trying to enable ssh and luci by sending the commands through mqtt, the device does not connect with mqtt or with ssh. I have sent the commands through mqtt "umount /overlay" , "jffs2reset -y"and "reboot" with the outputs that I attach in the image. I need to configure access by WIFI. What I can be doing wrong
Error
Thanks!

@alberto072710
Copy link
Author

I have done more tests. After doing the commands, I re-inserted the bin and .new files into the pendrive for about 5 minutes and the white led went off, I took out the pendrive and connected it via ethernet to the router and the device communicated again via mqtt but I do not have access through from ssh or luci.

@Human3322
Copy link

Thanks you very much for your fantastic work. I also have the same problem, can't find SSH in the luci web interface.
All instructions in the "readme" works fine and I'm not advanced user so what should I do to see the last picture with walues from heat pump?
Regards

@burt2902
Copy link

burt2902 commented Nov 30, 2022

There is a way to access ssh without going thru first-boot procedure. Assuming MQTT is working, the steps require sending MQTT OS command to spawn ssh server and using deprecated cipher algorithm when ssh-ing.

mosquitto_pub -t "panasonic_heat_pump/commands/OSCommand" -m "/usr/sbin/dropbear" -h <MQTT BROKER IP>
ssh -l root -oKexAlgorithms=+diffie-hellman-group1-sha1 <GOHEISHAMON IP>

@pando85
Copy link
Contributor

pando85 commented Oct 16, 2023

Thanks, it worked perfectly. After it, I fixed the dropbear config with this:

# cat /etc/config/dropbear
config dropbear
    option PasswordAuth 'on'
    option RootPasswordAuth 'on'
    option Port            '22'
#    option BannerFile    '/etc/banner'

And after restarted it worked.

@adnovea
Copy link

adnovea commented Nov 5, 2023

Thanks Pando85 for your SSH config, it works like a charm but GHM v1.1.191 crashes randomly

GoHeisaMon on CZ-TAW1B
I did struggle to have a version installed and running on my CZ-TAW1B module (see link)

Enabling SSH
As a beginner to HA and not a software engineer, I spent lot of time understanding where to start from, especially regarding the MQTT support.
To issue the MQTT command for SSH, I used the MQTT Explorer window application but I should have used the MQTT integration (Configure button) to send the command below:

    topic :     panasonic_heat_pump/commands/OSCommand
    Payload :   /usr/sbin/dropbear

Make SSH permanent
To create the /etc/config/dropbear file, I was blocked. I discovered the versatility of the PUTTY console for creating text files.
To copy the text from the console into a file, you only have to type the following command:

  cat > /etc/config/dropbear

then to copy-paste the content of the pando85 post below and save with CTRL+D .

config dropbear
    option PasswordAuth 'on'
    option RootPasswordAuth 'on'
    option Port            '22'

To check that everything is correct type : cat /etc/config/dropbear .

Files transfert
The good news is that WinSCP is supported and will help you to copy file to GoHeisaMon in the future.
You must select the SCP Protocol and connect to your module.

Conclusions
SSH and WinSCP are very helpful to debug.
I also tried without success to add a work-around script to manage crashes (see my other post)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants