简体   繁体   中英

postgresql ssh keyboard-interactive authentification

I installed postgresql on a Windows Server 2007 and created a database in there. As long as I work on local (localhost) there is no problem. Now i want to remote access the created databases on my Mac using Postico.

I input the credentials and get the following error: 不接受键盘交互式身份验证,但需要键盘交互式身份验证。

Can anyone tell me where I can solve this problem ?

Here is some follow-up info:

  • my pg_hba.conf already has the following line:

host all all 0.0.0.0/0 md5

  • my postgresql.conf has:

listen_addresses = "*" and #ssl = off (not sure if I have to turn it on).

  • finally, here is a screenshot of the credentials:

在此处输入图片说明

I figured it out:

The options of the pg_hba.conf & postgresql.conf were OK.

However newbies like me might not know the following:

  • Windows servers don't allow SSH natively - freeSSH helps with this
  • The SSH host is the machine you are trying to connect to, and thus, the SSH user is the user of the SSH connection, not the database user.

Last little comment :

While this seems natural to most users of this platform, I found this information to be quite hard to find on google for pgsql, especially since it is so basic (try to find the difference between Host and SSH host assuming you know nothing about it). There are hardly any tutorials as to how to connect to a distant server using non-proprietary software without any codelines (as I don't understand DOS and terminal commands, i prefer not to use them).

It might be a good idea for someone with better understanding of the process to create a beginner tutorial on how to set up a connection to a database within a small company.

In case someone feels generous ... ;-)

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