    # File lib/chef/knife/ssh.rb, line 418
          def run
            extend Chef::Mixin::Command

            @longest = 0

            configure_attribute
            configure_user
            configure_identity_file
            configure_gateway
            configure_session

            exit_status =
            case @name_args[1]
            when "interactive"
              interactive
            when "screen"
              screen
            when "tmux"
              tmux
            when "macterm"
              macterm
            when "cssh"
              cssh
            when "csshx"
              Chef::Log.warn("knife ssh csshx will be deprecated in a future release")
              Chef::Log.warn("please use knife ssh cssh instead")
              cssh
            else
              ssh_command(@name_args[1..-1].join(" "))
            end

            session.close
            if exit_status != 0
              exit exit_status
            else
              exit_status
            end
          end