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

SSH Connection Refused When Launching Flutter App on AGL QEMU Image #29

Closed
JesperBllnbm opened this issue Aug 20, 2024 · 3 comments
Closed

Comments

@JesperBllnbm
Copy link

Hello @jwinarske ! 👋

I've made some progress with the AGL QEMU setup, but I've hit another snag when trying to run the Flutter app. I'd appreciate your insights on this new issue.

When attempting to launch the Flutter app using flutter run, I encounter the following error:

Launching lib/main.dart on AGL ricefish-latest QEMU Image in debug mode...
ssh: connect to host localhost port 22: Connection refused

QEMU is running and I can interact with the AGL UI. I also added the fingerprint:

Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[localhost]:2222' (ED25519) to the list of known hosts.
agl-driver tty7         Aug 20 17:23
  • The error message mentions port 22, but the configuration shows that the connection from the host is opened via port 2222, which is forwarded to port 22 on the virtual machine.
  • I've created a ricefish config based on existing configs, applying the suggested fix from issue Missing QEMU image file in AGL configuration #26.

Questions

  1. Why is the Flutter run command attempting to connect to port 22 instead of 2222?
  2. Is there a configuration setting I might have missed that specifies the SSH port for Flutter?
  3. Could this be related to the changes made in the ricefish config?

I'm happy to suggest PRs if needed, but I don't yet feel confident enough in my understanding of the system to do so. Any guidance or explanations would be greatly appreciated.

Thanks in advance for your help with this issue!

@jwinarske
Copy link
Contributor

@jwinarske
Copy link
Contributor

Also be sure you're using the configs in meta-agl-flutter. The ones here are just for reference.

@jwinarske
Copy link
Contributor

Closing due to inactivity

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

No branches or pull requests

2 participants