mention ssh keys in readme
This commit is contained in:
parent
9af9870e31
commit
f37d155d9f
1 changed files with 4 additions and 2 deletions
|
@ -2,7 +2,8 @@ virssh - allow users to control their libvirt VM through SSH.
|
||||||
|
|
||||||
virssh is a simple wrapper around sudo and virsh that allows users to control
|
virssh is a simple wrapper around sudo and virsh that allows users to control
|
||||||
their libvirt VM(s) through SSH. Currently supported is starting/stopping VMs,
|
their libvirt VM(s) through SSH. Currently supported is starting/stopping VMs,
|
||||||
serial console and listing all VMs to get their status.
|
serial console and listing all VMs to get their status. Authorization is done
|
||||||
|
using SSH public keys.
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
|
|
||||||
|
@ -14,7 +15,8 @@ Configuration:
|
||||||
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:
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue