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
[Question] SSH tunneling fails #960
Comments
If you are using SSH one-click app you are not even entering console of the container. I am assuming you see this on your local terminal, right? Anyways, the error you're seeing is just an SSH error, check these: 1- What is "ssh-port" ? Is it the same port that you chose when you deployed your SSH One Click app? default is 4646 Details here: https://caprover.com/docs/database-connection.html#external-connections |
Thanks, I got it working! For anyone else wondering, it was #2, 3 in your list |
Encountered similar issue, though it was not the case with 1,2 nor 3. I was able to telnet to the remote container on 4646. On the container I checked the containers The missing bit was After this scaled down and up: |
@makstr Thank you so much, that helped a lot!
|
Very useful info. Could this be added to the docs? Or even better to the SSH 1-click app? TIA |
For anyone else hitting this snag with Cloudflare make sure you don't have your domain proxied through cloudflare. |
how did you change those files in the ssh-container? are you using the 1-click app or made a custom container? |
I used the 1-click app and SSHd into it. Then changed the file. |
Protip. Its not "root", its "caprover" ssh user by default. |
December 2023 - I can still confirm the problem. Running with verbose log showed: The installed SSH One Click App is OpenSSH_8.6p1 from 15.3.2022 and the problem was After setting it to @githubsaturn Please update the ssh agent and change it to have AllowTcpForwarding yes as default. Or update the documentation! @ |
@amazing4u - thanks for the note! One click apps are community maintained and open source. Please feel free to update. |
I tried to follow the example for remote database connections in the docs, but I after opening the SSH tunnel, and trying to connect to the database with DBeaver, I get this error in the console of the container:
channel 3: open failed: connect failed: Connection refused
.I have a Postgres container running, and the SSH one-click app, and I ran this command:
Is there anything I'm missing?
The text was updated successfully, but these errors were encountered: