简体   繁体   中英

How to tunnel pgAdmin over wsl2 to CF Database Service?

how can I tunnel my local Windows pgAdmin Client over wsl2 to my cf database? Im already connected with my server: cf ssh -L 8888:servername:5432 app-name Im trying to connect per localhost 127.0.0.1 and Port 8888. I dont want to install cf cli extra for windows just running over wsl2. Hope for some help, much colleges have the same problem.

I've found a solution.

cf login [-a API_URL] [-u USERNAME] [-s SPACE]
cf env [APP_NAME]
cf ssh APP_NAME -L 9105:IP:PORT

Bind local wsl2 port for example 9105

pgAdmin Connection: Host: 127.0.0.1 (localhost doenst work. You can connect but not push sql query) If you have entered localhost you will get the error message SSL negation packet socket is not connected. Port 9105

Now you guys are fine if you'll have this problem. Have fun:)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM