Bug 1546540 - [Docs][RFE][Metrics Install] Document retrieving public key for ssh between Manager and Metrics Store
Summary: [Docs][RFE][Metrics Install] Document retrieving public key for ssh between M...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.3
: ---
Assignee: Emma Heftman
QA Contact: Avital Pinnick
URL:
Whiteboard: docs-accepted
Depends On: 1507294
Blocks: 1552582
TreeView+ depends on / blocked
 
Reported: 2018-02-18 13:42 UTC by Emma Heftman
Modified: 2019-05-07 12:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-03-26 14:02:41 UTC
oVirt Team: Docs
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Emma Heftman 2018-02-18 13:42:35 UTC
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

Comment 1 Emma Heftman 2018-02-20 14:30:25 UTC
Hi Shirly
Do you have the updated procedure for saving the key as a temp file?

Comment 2 Shirly Radco 2018-02-20 19:02:40 UTC
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.

Comment 3 Yedidyah Bar David 2018-02-22 11:18:02 UTC
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

Comment 4 Shirly Radco 2018-03-04 08:45:29 UTC
This works for me

Comment 11 Avital Pinnick 2018-03-25 12:03:47 UTC
Reviewed and merged


Note You need to log in before you can comment on or make changes to this bug.