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

How to Open Remote Access of H2 Database #535

Open
9k001 opened this issue Dec 4, 2024 · 1 comment
Open

How to Open Remote Access of H2 Database #535

9k001 opened this issue Dec 4, 2024 · 1 comment
Assignees

Comments

@9k001
Copy link

9k001 commented Dec 4, 2024

I have this problem now.
During my test, I set the Realm of the admin account incorrectly, which prevented me from accessing nexus through the web using the account password. So I decided to try to modify the h2 database to solve this problem.
The difficulty I currently encounter is that when I use nexus deployed by docker, I need to enable h2 http access. After I enabled http listening and port, I found that I can only access it locally, and I can only access it remotely.
The relevant setting codes are as follows

# vi sonatype-work/nexus3/etc/nexus.properties
nexus.h2.httpListenerEnabled=true
nexus.h2.httpListenerPort=1234

Question1

@DimmoK
Copy link

DimmoK commented Jan 17, 2025

Hello!
Sorry for my bad English.

I access that:
add line to config but port - 8099
start putty
add my nexus server
add tunnel:
local port - 8099
remote: 192.168.1.4:8099
start ssh connect

Image

And in browser http://127.0.0.1:8099

Image

Press - Connect

Image

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

3 participants