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

            @longest = 0

            configure_session

            case @name_args[1]
            when "interactive"
              interactive
            when "screen"
              screen
            when "tmux"
              tmux
            when "macterm"
              macterm
            else
              ssh_command(@name_args[1..-1].join(" "))
            end

            session.close
          end