lib/ztk/ssh/core.rb
# Starts an SSH session.  Can also be used to get the Net::SSH object.
#
# Primarily used internally.
Starts an SSH session.  Can also be used to get the Net::SSH object.
Primarily used internally.
Starts an SSH session . Can also be used to get the Net :: SSH object . Primarily used internally .
def ssh
        if do_proxy?
          @ssh ||= self.gateway.ssh(config.host_name, config.user, ssh_options)
        else
          @ssh ||= Net::SSH.start(config.host_name, config.user, ssh_options)
        end
        @ssh
      end
def ssh if do_proxy? @ssh ||= self . gateway . ssh ( config . host_name , config . user , ssh_options ) else @ssh ||= Net :: SSH . start ( config . host_name , config . user , ssh_options ) end @ssh end
Starts an SSH session.
Starts an SSH session .