diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-03-24 15:26:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-03-24 15:26:02 -0300 |
commit | 5d23ad41ed3db5b82315d1de35a748ab4506d431 (patch) | |
tree | bef1163a4ea30dc721cc284ce376f35e4e235608 | |
parent | f365cc0d217c895d1741c5cba8b03dd75064e33f (diff) | |
download | kvmx-5d23ad41ed3db5b82315d1de35a748ab4506d431.tar.gz kvmx-5d23ad41ed3db5b82315d1de35a748ab4506d431.tar.bz2 |
Check for ssh support
-rwxr-xr-x | kvmx | 5 | ||||
-rw-r--r-- | kvmxfile | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -333,6 +333,11 @@ function kvmx_ssh { exit 1 fi + if [ "$ssh_support" != "y" ]; then + echo "$BASENAME: SSH support for $VM is disabled" + exit 1 + fi + # Shift params according to how the program was called: # either "kvmx ssh" or "kvmx ssh guest". if [ "$ACTION" == "ssh" ]; then @@ -61,4 +61,6 @@ ssh_support="y" # Please note that this setting won't take effect if you're using a basebox. # In that case the basebox keypair will be used if it exists, otherwise kvmx # fallsback to the default insecure keypair. +# +# This setting is used during virtual machine bootstrapping by kvmx-create. ssh_custom="y" |