    # File lib/chef/knife/ssh.rb, line 211
          def interactive
            puts "Connected to #{ui.list(session.servers_for.collect { |s| ui.color(s.host, :cyan) }, :inline, " and ")}"
            puts
            puts "To run a command on a list of servers, do:"
            puts "  on SERVER1 SERVER2 SERVER3; COMMAND"
            puts "  Example: on latte foamy; echo foobar"
            puts
            puts "To exit interactive mode, use 'quit!'"
            puts
            while 1
              command = read_line
              case command
              when 'quit!'
                puts 'Bye!'
                break
              when /^on (.+?); (.+)$/
                raw_list = $1.split(" ")
                server_list = Array.new
                session.servers.each do |session_server|
                  server_list << session_server if raw_list.include?(session_server.host)
                end
                command = $2
                ssh_command(command, session.on(*server_list))
              else
                ssh_command(command)
              end
            end
          end