dcaputo-harmoni / open-balena-admin

Open Balena Admin
MIT License
91 stars 18 forks source link

SSH's iframe not loading #35

Closed giuseppe443 closed 7 months ago

giuseppe443 commented 8 months ago

I seem to be having problems getting the iframe for the remote SSH connection to work, or even load with the page. Everything else works, its just the remote SSH that seems to be failing

This is what it currently looks like: image

And this are the console logs for the browser when i click connect: image

It would seem like the problem is that i am running admin.domain on HTTP and not HTTPS, and i am not quite sure how to switch to HTTPS.

I followed the troubleshooting on issue #3 But it doesnt seem to be the same issue as at least his iframe loaded the error message.

Thanks again.

giuseppe443 commented 8 months ago

Update:

Alrigth by using the insecure flag for process.env.HOST_MODE === and trying to recreate the link in an other browser window like this:

http://remote.NOTREALPAGE.COM:10000/?service=ssh&container=host&uuid=c160ea6&apiKey= I am able to get to this image

and here the logs of openbalena-admin_remote_1 container image

But nothing much else.

giuseppe443 commented 7 months ago

Welp, seems like the only real fix is to run it all through a reverse proxy to get it to work. Gonna close this issue