use markdown in readme
This commit is contained in:
parent
ff8b3d3b54
commit
d9faf53dd1
1 changed files with 4 additions and 4 deletions
|
@ -8,18 +8,18 @@ using SSH public keys.
|
||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
|
||||||
1. Create a user <pre>vmadmin</pre>.
|
1. Create a user <code>vmadmin</code>.
|
||||||
|
|
||||||
2. Give that user sudo permissions for calling virsh, so she may control (all)
|
2. Give that user sudo permissions for calling virsh, so she may control (all)
|
||||||
VMs:
|
VMs:
|
||||||
|
|
||||||
Defaults:vmadmin !requiretty
|
Defaults:vmadmin !requiretty
|
||||||
vmadmin ALL = (root) NOPASSWD: /usr/bin/virsh
|
vmadmin ALL = (root) NOPASSWD: /usr/bin/virsh
|
||||||
|
|
||||||
3. For every one of your users, create a line in vmadmin's .ssh/authorized_keys
|
3. For every one of your users, create a line in vmadmin's .ssh/authorized_keys
|
||||||
using their SSH public keys:
|
using their SSH public keys:
|
||||||
|
|
||||||
command="/usr/local/bin/virssh myfancyvm",permitopen="localhost:5915",no-X11-forwarding,no-agent-forwarding ssh-rsa AAAAB...== myfancyuser@hjome
|
command="/usr/local/bin/virssh myfancyvm",permitopen="localhost:5915",no-X11-forwarding,no-agent-forwarding ssh-rsa AAAAB...== myfancyuser@hjome
|
||||||
|
|
||||||
Instead of specifying only one VM "myfancyvm", you may also specify multiple
|
Instead of specifying only one VM "myfancyvm", you may also specify multiple
|
||||||
VMs by regex, for example "(myfancyvm|myothervm)".
|
VMs by regex, for example "(myfancyvm|myothervm)".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue