ssh engine server 2. retrieve the public key from a SSH private key # cd /etc/pki/ovirt-engine/keys/ # ssh-keygen -y -f engine_id_rsa > /tmp/engine_id_rsa.pub # ssh-copy-id -i engine_id_rsa.pub root@rhevh_host In addition, Didi wants to save it as a temp. file. Need to get updated instructions for how to do thisl
Hi Shirly Do you have the updated procedure for saving the key as a temp file?
Didi, we need to supply the user the step he needs to to to exchange the keys between engine and the metrics store machine. Can you help provide them ? # mytemp=$(mktemp -d) # cd /etc/pki/ovirt-engine/keys/ # ssh-keygen -y -f /etc/pki/ovirt-engine/keys/engine_id_rsa > $mytemp/engine_id_rsa.pub #ssh-copy-id -i $mytemp/engine_id_rsa.pub root@machine rm -rf $mytemp This did not work for me.
Seems like ssh-copy-id looks for the private key in the same directory (unless we use '-f', which I think we do not want to). So something like this should work: # mytemp=$(mktemp -d) # cp /etc/pki/ovirt-engine/keys/engine_id_rsa $mytemp # ssh-keygen -y -f $mytemp/engine_id_rsa > $mytemp/engine_id_rsa.pub # ssh-copy-id -i $mytemp/engine_id_rsa.pub root@machine It should ask for root password (on first attempt), supply it # rm -rf $mytemp To test: # ssh -i /etc/pki/ovirt-engine/keys/engine_id_rsa root@dwh hostname
This works for me
Reviewed and merged