-
Notifications
You must be signed in to change notification settings - Fork 20
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
About SSH #3
Comments
@ArrayIndexOutOfBound thank you for trying it out! Could you provide some additional details on your setup? Also, are your devices running in development or production mode? If you are not able to establish a tunnel to a device using |
@ArrayIndexOutOfBound your setup looks fine to me - other than changing to development mode (which hopefully won't be required once we implement the ability to utilize SSH keys) I don't see any issues. What happens if you try running the command from your local computer: |
Hello, It seems that the OS is still on "prod" mode ? But I did this when downloading a second time the os : BalenaPi4_DEV.img being the image downloaded directly on the balena page, unziped I will update this post I find something. |
@ArrayIndexOutOfBound sounds like we are getting closer. Could you confirm the URL that is being passed to And while you are inspecting the iframe, take a look to see if there are any browser console errors reported. If it is a |
The link in the iframe is something like this: The console seems to be empty when loading this page : I tried some ports :
If it might help, here is the content of |
OK - a couple of things from your response. I'm not sure why the iframe URL would be referencing port 8000, it should be 10000. Can you try pasting that same URL (with all of the query parameters, including If you take a look in the
This is the same environment variable that is used to generate the URL to call connect (see below from
I can't think of a reason why your instance would be trying to call port 8000 - I'm assuming you did not modify |
SORRY ! I did not touch the |
OK, that makes more sense. So the issue seems to be isolated to the
to:
Then run UPDATE while you are in that container, you should also try using the |
Alright ! As I can understand, I have a problem with a I don't know how certificates works, but does it have to do with the fact that when I'm trying to acess the webpage (admin or api), I sometimes get a warning about the fact that the website is 'dangerous ?' When doing
And for openbalena-admin
|
OK, looks like you found the issue. It appears your One solution you can try is modifying the following code in
to this:
And then kill the prior process and re-run it per my earlier instructions. I suspect this would fix your issue, but it's really more of a workaround and I'm not sure we would want that in the main branch of |
I have tried modifying the I will try to search on how to make the certificates "approuved" by my/any web browser. As for why my balena-cli on the server seems to be ok, it's because I followed the insctruction on the getting started page on my .profile and .bashrc so it get set on reboot. |
Seems you are making further progress. Can you try inspecting the iframe again, copy the URL and open it in a new browser window to see if it works there. Then try changing http to https in the URL for that new window and see if it makes a difference. |
@ArrayIndexOutOfBound can you confirm what browser you are using? https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage also, can you confirm if you are seeing any errors in the browser console? |
Ok, further progress. That’s clearly the issue you are having now - without the cookie proxy can’t work. Can you try going to "chrome://flags" and disabling "Cookies without SameSite must be secure"? |
Not sure if it is a translation thing but those don’t look like the right settings. Here is another article that describes which settings to change: |
According to the documentation, since my Chrome is version 100 and it's said that :
I have nothing to do with theses flags that seem to be Enabled by default now. If I translate the error message, we get something like
Do I need to remove the |
Alright ! |
Great! And just to confirm, when you say that you set the cookie to false do you mean you set "httpOnly" to false, or "secure" to false? (or both?) It seems this issue is related to http connections; remote is running fine on my https server otherwise. If this is the case, I can work in a parameter into the quickstart script to specify if the servers will be running via http or https, and if https, it will set all URLs to https and also set secure to true, otherwise all will be http and secure will be false. |
I changed only "secure" to |
Added insecure mode option at build time |
|
@dcaputo-harmoni is this solved now re SSH with keys in production? Based on this post? https://forums.balena.io/t/production-image-ssh-access/355781 |
Hello,
First of all, thanks for this project, it sems to be very usefull for me, but even for futur people who will find this little gem.
Anyways, if I am here to report an issue, it's because it seems that I'm not able to connect via SSH to my device.
The error itself :
After searching a bit in the files of
openbalena
, and the files if this project, I found this :The content of
openbalena/config/activate
I guess that this specific line shouldn't be empty ?
If I'm trying to do a ssh connection via the
balena-cli
, it asks for the password ofadmin@ssh.devices.mydomain.notlocal
, which I do not remember setting up anywhere.Thanks for giving me a bit of your time, have a good day.
The text was updated successfully, but these errors were encountered: