PostgreSQL is a database system that is freely distributed according to the BSD license agreement. This software is one of the most widely used databases today, in addition to MySQL and Oracle. PostgreSQL provides features that are useful for database replication.
Data replication is useful to ease the performance of the main database by diverting select data in the mirror database and special databases for data execution
before you setting replication, the first you must setting ssh authentication, you can see in here.
youtube : • SSH - Public Key Authentication