pmialon at linagora.com
2009-Sep-08 16:15 UTC
[Ovirt-devel] [PATCH node-image] Working version of Add the ability to use persistent ssh_host_keys on the ovirt-node
From: root <root at linagora-ovirt.netaktiv.com> --- ovirt-node-image.ks | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks index 802b6a5..9a7d617 100644 --- a/ovirt-node-image.ks +++ b/ovirt-node-image.ks @@ -55,6 +55,22 @@ if [ -f "ovirt-authorized_keys" ]; then chmod 644 $INSTALL_ROOT/root/.ssh/authorized_keys fi +if [ -f ovirt-ssh_host_dsa_key -a -f ovirt-ssh_host_dsa_key.pub -a\ + -f ovirt-ssh_host_key -a -f ovirt-ssh_host_key.pub -a \ + -f ovirt-ssh_host_rsa_key -a -f ovirt-ssh_host_rsa_key.pub ]; then + echo "Adding persistent ssh_keys for host to Image" + mkdir -p $INSTALL_ROOT/etc/ssh + cp -v ovirt-ssh_host_dsa_key $INSTALL_ROOT/etc/ssh/ssh_host_dsa_key + cp -v ovirt-ssh_host_key $INSTALL_ROOT/etc/ssh/ssh_host_key + cp -v ovirt-ssh_host_rsa_key $INSTALL_ROOT/etc/ssh/ssh_host_rsa_key + cp -v ovirt-ssh_host_key.pub $INSTALL_ROOT/etc/ssh/ssh_host_key.pub + cp -v ovirt-ssh_host_dsa_key.pub $INSTALL_ROOT/etc/ssh/ssh_host_dsa_key.pub + cp -v ovirt-ssh_host_rsa_key.pub $INSTALL_ROOT/etc/ssh/ssh_host_rsa_key.pub + chown root:root $INSTALL_ROOT/etc/ssh/*key* + chmod 600 $INSTALL_ROOT/etc/ssh/*key + chmod 644 $INSTALL_ROOT/etc/ssh/*key.pub +fi + echo "Fixing boot menu" # remove quiet from Node bootparams, added by livecd-creator sed -i -e 's/ quiet//' $LIVE_ROOT/isolinux/isolinux.cfg -- 1.6.2.5
Maybe Matching Threads
- Re: persistent ssh_host_keys
- [PATCH node-image] Add ability to set persistent ssh_host_keys on the node, usefull if you run diskless instance of ovirt-node
- [PATCH node] refactor node image recipe
- OpenSSH 7.3p1 can't be build on Solaris 10
- Problems compiling on Redhat