Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9256885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:04:56+00:00 2026-06-18T12:04:56+00:00

I have a problem connecting (using SSH) to my virtualbox(ubuntu) postgres server. I set

  • 0

I have a problem connecting (using SSH) to my virtualbox(ubuntu) postgres server.
I set up all nice and correctly.

PostgreSQL settings:

  • postgresql.conf -> Allowed all incomming connection (*) and set ssl TRUE
  • pg_hba.conf -> after a lot of changes i came to the point where it seems to work with this settings:

IP4

host all all 0.0.0.0/0 trust
hostssl all all 0.0.0.0/0 trust
host all all 192.168.x.x/32 trust 
hostssl all all 192.168.x.x/32 trust 

I tried:

  1. Made restart of my postgres server on the virtual machine.

  2. Then i went to my host machine (Snow Leopard), build a ssh connection to the virtualbox (ubuntu) and it’s working.

  3. ping my guest machine on port 5432 also works.

  4. Open pgadmin on my host machine (Snow Leopard) -> added server 192.68.56.1 and database pluto, user pippo. The connection worked and i see the DB.

  5. Tried open TERMINAL in Snow Leopard and executed following cmd:

    psql -h 192.168.56.1 -U pippo -d pluto
    

    with ERROR:

    psql: FATAL:  no pg_hba.conf entry for host "192.168.56.1", 
                  user "pippo", database "pluto", SSL off
    

I also tried to connect through my Java Program ans I got the same error.
What am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T12:04:58+00:00Added an answer on June 18, 2026 at 12:04 pm

    pgAdmin tries to connect with and without SSL by default.

    I suspect that you only try to connect without SSL via psql, while the server seems to require SSL for connections. Try:

    psql "sslmode=require host=192.168.56.1 dbname=pluto" pippo
    

    More about sslmode in the manual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with my connection tunneling. So I'm using two ubuntu server
I have a problem connecting to Informix server(windows) using ADO.NET. I'm using Listing 1
Hello! I have problem with connecting to remote host. I forgot ssh password but
I try to connect a server though SSH using Ruby, but I have an
I have been using an Ubuntu 8.04 server with fail2ban for a while now
I have problem while connecting to mysql database using ADO.NET Driver for MySQL (Connector/NET)
I have a little problem. I'm using Codeigniter with SSH library written by Shuky
I have a problem converting a string binary to a decimal I was using
Here is the problem: I have a WCF service and a few sites connecting
I have run into a little problem. I am connecting to a webservice that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.