    # File lib/chef/knife/ssh.rb, line 164
          def ssh_command(command, subsession=nil)
            subsession ||= session
            command = fixup_sudo(command)
            subsession.open_channel do |ch|
              ch.request_pty
              ch.exec command do |ch, success|
                raise ArgumentError, "Cannot execute #{command}" unless success
                ch.on_data do |ichannel, data|
                  print_data(ichannel[:host], data)
                  if data =~ /^knife sudo password: /
                    ichannel.send_data("#{get_password}\n")
                  end
                end
              end
            end
            session.loop
          end