Lines Matching full:ssh

59 # and a single ssh ping in wait_up().
69 framework necessary for controlling a host via ssh. It implements
74 # Timeout for main ssh connection setup, in seconds.
92 @param user: The username to use when ssh'ing into the host.
93 @param password: The password to use when ssh'ing into the host.
94 @param port: The port to use for ssh.
101 the main ssh connection across control scripts.
130 Main SSH connection background job, socket temp directory and socket
131 control path option. If main-SSH is enabled, these fields will be
132 initialized by start_main_ssh when a new SSH connection is initiated.
188 """Returns True if its port is default SSH port."""
218 return ("/usr/bin/ssh -a -x %s -l %s %s" %
226 """Composes SSH -o options."""
277 # trailing port number (ssh doesn't support IPv6 brackets).
339 Create a base ssh command string for the host which can be used
493 # Start a main SSH connection if necessary.
519 # rc 255: Ssh error
599 # Start a main SSH connection if necessary.
762 """Verify ssh access to this host.
777 Pings remote host via ssh.
781 @param connect_timeout: ssh connection timeout in seconds.
782 @param base_cmd: The base command to run with the ssh ping.
784 @raise AutoservSSHTimeout: If the ssh ping times out.
785 @raise AutoservSshPermissionDeniedError: If ssh ping fails due to
794 msg = "Host (ssh) verify timed out (timeout = %d)" % timeout
808 Check if the remote host is up by ssh-ing and running a base command.
811 @param connect_timeout: ssh connection timeout in seconds.
812 @param base_cmd: a base command to run with ssh. The default is 'true'.
859 In fact, it will wait until an ssh connection to the remote
872 # an existing ssh main connection close it.
971 logging.debug('Host %s is now unreachable over ssh, is down',
1010 logging.info("Host (ssh) %s is alive", self.host_port)
1038 """Stop the ssh main connection.
1041 need a ssh timeout to tell us it is down. For example, if you just
1044 logging.debug("Stopping main ssh connection")
1049 Stop and restart the ssh main connection. This is meant as a last
1050 resort when ssh commands fail and we don't understand why.
1052 logging.debug("Restarting main ssh connection")
1058 Called whenever a non-main SSH connection needs to be initiated (e.g.,
1059 by run, rsync, scp). If main SSH support is enabled and a main SSH
1061 Also, cleanup any zombie main SSH connections (e.g., dead due to
1064 timeout: timeout in seconds (default 5) to wait for main ssh
1107 """Clears out the temporary ssh known_hosts file.
1185 """Create an ssh tunnel from local_port to port.
1199 # Exec the ssh process directly here rather than using a shell.
1200 # Using a shell leaves a dangling ssh process, because we deliver
1201 # signals to the shell wrapping ssh, not the ssh process itself.
1206 logging.debug('Started ssh tunnel, local = %d'