1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-24 23:25:24 +00:00

README.md add ### Configuring Compute SSH connection

This commit is contained in:
Ing. Jan KRCMAR 2018-08-31 15:26:42 +02:00
parent 1e3c06b98b
commit 3b4a1089c3

View file

@ -219,6 +219,25 @@ login: admin
password: admin password: admin
</pre> </pre>
### 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 ### Cloud-init
Currently supports only root ssh authorized keys and hostname. Example configuration of the cloud-init client follows. Currently supports only root ssh authorized keys and hostname. Example configuration of the cloud-init client follows.
``` ```