From 3b4a1089c30fa8b9246d9fb97f418deffef2815f Mon Sep 17 00:00:00 2001 From: "Ing. Jan KRCMAR" Date: Fri, 31 Aug 2018 15:26:42 +0200 Subject: [PATCH] README.md add ### Configuring Compute SSH connection --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 0690f01..fdc2975 100644 --- a/README.md +++ b/README.md @@ -219,6 +219,25 @@ login: admin password: admin +### Configuring Compute SSH connection +This is a short example of configuring cloud and compute side of the ssh connection. + +On the webvirtcloud machine you need to generate ssh keys and optionally disable StrictHostKeyChecking. +``` +chown www-data -R ~www-data +sudo -u www-data ssh-keygen +cat > ~www-data/.ssh/config << EOF +Host * +StrictHostKeyChecking no +EOF +chown www-data -R ~www-data/.ssh/config +``` + +You need to put cloud public key into authorized keys on the compute node. Simpliest way of doing this is to use ssh tool from the webvirtcloud server. +``` +sudo -u www-data ssh-copy-id root@compute1 +``` + ### Cloud-init Currently supports only root ssh authorized keys and hostname. Example configuration of the cloud-init client follows. ```