# Log into the guest using SSH
function kvmx_ssh {
+ if [ "$ssh_support" != "y" ]; then
+ echo "$BASENAME: SSH support for $VM is disabled"
+ exit 1
+ fi
+
if ! kvmx_running || kvmx_suspended; then
echo "$BASENAME: $VM not running, trying to start it..."
kvmx up $VM || exit 1
#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