mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-10 06:14:37 +00:00
README.md add ### Configuring Compute SSH connection
This commit is contained in:
19
README.md
19
README.md
@@ -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.
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user