nrvr.wins.common.ssh
index
/usr/lib/python2.7/site-packages/nrvr/wins/common/ssh.py

nrvr.wins.common.ssh - Remote commands over ssh to Cygwin
 
The main class provided by this module is CygwinSshCommand.
 
CygwinSshCommand inherits from nrvr.remote.ssh.SshCommand,
including limitations documented there.
 
Idea and first implementation - Leo Baschy <srguiwiz12 AT nrvr DOT com>
 
Public repository - https://github.com/srguiwiz/nrvr-commander
 
Copyright (c) Nirvana Research 2006-2015.
Simplified BSD License

 
Modules
       
re
sys
time

 
Classes
       
nrvr.remote.ssh.SshCommand(__builtin__.object)
CygwinSshCommand

 
class CygwinSshCommand(nrvr.remote.ssh.SshCommand)
    Send a command over ssh to Cygwin.
 
 
Method resolution order:
CygwinSshCommand
nrvr.remote.ssh.SshCommand
__builtin__.object

Methods defined here:
__init__(self, sshParameters, argv, exceptionIfNotZero=True, maxConnectionRetries=10, tickerForRetry=True)
Create new CygwinSshCommand instance.
 
See nrvr.remote.ssh.SshCommand.

Class methods defined here:
isGuiAvailable(cls, sshParameters, alsoNeedsScreen=False) from __builtin__.type
Return whether GUI is available.
 
Should be user to be meaningful.
 
Will wait until completed.
 
sshParameters
    an SshParameters instance.
sleepUntilIsGuiAvailable(cls, sshParameters, alsoNeedsScreen=False, checkIntervalSeconds=3.0, ticker=False, extraSleepSeconds=5.0) from __builtin__.type
If GUI available return, else loop sleeping for checkIntervalSeconds.
 
Should be user to be meaningful.
 
As implemented first calls SshCommand.sleepUntilIsAvailable(sshParameters).
 
sshParameters
    an SshParameters instance.

Class methods inherited from nrvr.remote.ssh.SshCommand:
acceptKnownHostKey(cls, sshParameters, connectTimeoutSeconds=None) from __builtin__.type
Accept host's key.
 
Will wait until completed.
 
ipaddress
    IP address or domain name.
commandsUsedInImplementation(cls) from __builtin__.type
Return a list to be passed to SystemRequirements.commandsRequired().
 
This class can be passed to SystemRequirements.commandsRequiredByImplementations().
hasAcceptedKnownHostKey(cls, sshParameters) from __builtin__.type
Return whether an attempt to acceptKnownHostKey() succeeds.
 
Will wait until completed with success or failure.
 
sshParameters
    an SshParameters instance to use in the attempt.
 
return
    whether success.
isAvailable(cls, sshParameters, probingCommand='hostname') from __builtin__.type
Return whether probingCommand succeeds.
 
Will wait until completed.
removeKnownHostKey(cls, ipaddress) from __builtin__.type
Remove line from ~/.ssh/known_hosts file.
sleepUntilHasAcceptedKnownHostKey(cls, sshParameters, checkIntervalSeconds=3.0, ticker=False, extraSleepSeconds=5.0) from __builtin__.type
If available return, else loop sleeping for checkIntervalSeconds.
 
sshParameters
    an SshParameters instance to use in the attempts.
sleepUntilIsAvailable(cls, sshParameters, checkIntervalSeconds=5.0, ticker=False, probingCommand='hostname') from __builtin__.type
If available return, else loop sleeping for checkIntervalSeconds.

Data descriptors inherited from nrvr.remote.ssh.SshCommand:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
output
Collected output string of command.
 
May contain extraneous leading or trailing newlines and whitespace.
returncode
Returncode of command or 255 if an ssh error occurred.
 
Could be None.