aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-24 15:26:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-24 15:26:02 -0300
commit5d23ad41ed3db5b82315d1de35a748ab4506d431 (patch)
treebef1163a4ea30dc721cc284ce376f35e4e235608 /kvmx
parentf365cc0d217c895d1741c5cba8b03dd75064e33f (diff)
downloadkvmx-5d23ad41ed3db5b82315d1de35a748ab4506d431.tar.gz
kvmx-5d23ad41ed3db5b82315d1de35a748ab4506d431.tar.bz2
Check for ssh support
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index b9523aa..4d94cfb 100755
--- a/kvmx
+++ b/kvmx
@@ -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