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.


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

No comments:

Post a Comment