def ssh_command(ip, command)
      configure_ssh_command(ip, command) do |ch, success|
        return 1 unless success

        if_debug(2) do
          ch.on_data do |ch, data|
            $stderr.puts data
          end
        end

        ch.on_request("exit-status") do |ch, data|
          return data.read_long
        end
      end
    end
def ssh_command(ip, command)
      configure_ssh_command(ip, command) do |ch, success|
        return 1 unless success

        if_debug(2) do
          ch.on_data do |ch, data|
            $stderr.puts data
          end
        end

        ch.on_request("exit-status") do |ch, data|
          return data.read_long
        end
      end
    end
Run a command against a single IP. Returns the exit status.