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

            @longest = 0

            configure_attribute
            configure_user
            configure_identity_file
            configure_session

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

            session.close
          end