I've configured replication on postgresql with wal senders. The connection to database from the slave computer works well, but when i tried to execute this sentence to replicate the master server
pg_basebackup -h MasterIP -U postgres -D /var/lib/pgsql/9.6/data -P --xlog
I got this error pg_basebackup: could not connect to server: FATAL: no pg_hba.conf entry for replication connection from host "SlaveIP", user "postgres", SSL off
I hope someone can help me.