Tuesday, December 13, 2011

linux - ssh-copy-id

I used this tool today to copy one machine public key into the known hosts of another in order to set "trusted" communication. The other way to do this is to copy the they to the other machine and then copying it directly in the knownhosts file, which is obviously more complicated.

I need this kind of set up to enable streaming replication in postgresql with hot stand by capabilities.

http://linux.die.net/man/1/ssh-copy-id
http://www.howtoforge.com/how-to-set-up-a-postgresql-9.0-hot-standby-streaming-replication-server-with-repmgr-on-opensuse-11.4

The command to copy public keys
ssh-copy-id -i ~/.ssh/id_rsa.pub pgslave

No comments:

Post a Comment