View Issue Details

IDProjectCategoryView StatusLast Update
0000592Pgpool-IIBugpublic2020-03-06 15:02
Reportercyngate Assigned Tohoshiai  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version4.1.1 
Summary0000592: postgres 12 clustering using pgpool : unable to use password-less login
Descriptionhttps://www.pgpool.net/docs/41/en/html/example-cluster.html
i try to follow the cluster ,

when i install postgres 12.
postgress user is created and the default home folder will be in "/var/lib/pgsql"
so if i ssh-copy-id the public key the authhorized_key will be in "/var/lib/pgsql/.ssh/Authorized_key", when i login it will still prompt password.

but if i create a normal user using useradd command
ssh-copy-id will create the Authorized_key inside remote /home/remote/.ssh folder
then it will not prompt password if i attempt to login.
Steps To Reproducei try to follow the cluster ,

when i install postgres 12.
postgress user is created and the default home folder will be in "/var/lib/pgsql"
so if i ssh-copy-id the public key the authhorized_key will be in "/var/lib/pgsql/.ssh/Authorized_key", when i login it will still prompt password.

but if i create a normal user using useradd command
ssh-copy-id will create the Authorized_key inside remote /home/remote/.ssh folder
then it will not prompt password if i attempt to login.
Tagspgpool-II, watchdog

Activities

cyngate

2020-03-05 18:57

reporter   ~0003247

sorry, i further check on superuser and found out that it was due to selinux limiting file permission

i follow the solution from below
https://superuser.com/questions/266530/ssh-without-password-doesnt-work-with-user-postgres

please help to close this issue, sorry for the inconvenience

hoshiai

2020-03-06 15:02

developer   ~0003251

Ok I closed this ticket.

Issue History

Date Modified Username Field Change
2020-03-05 18:38 cyngate New Issue
2020-03-05 18:38 cyngate Tag Attached: pgpool-II
2020-03-05 18:38 cyngate Tag Attached: watchdog
2020-03-05 18:57 cyngate Note Added: 0003247
2020-03-06 15:02 hoshiai Assigned To => hoshiai
2020-03-06 15:02 hoshiai Status new => closed
2020-03-06 15:02 hoshiai Resolution open => fixed
2020-03-06 15:02 hoshiai Note Added: 0003251