noc.core.script.cli.ssh

Module Contents

noc.core.script.cli.ssh.key_lock
noc.core.script.cli.ssh.logger
class noc.core.script.cli.ssh.SSHIOStream(sock, cli, *args, **kwargs)

Bases: tornado.iostream.IOStream

SSH_KEY_PREFIX
_key_cache
__del__(self)
classmethod get_publickey(cls, pool)

Return public, private key pair :return: bytes, bytes or None, None

startup(self)

SSH session startup

read_from_fd(self)
write_to_fd(self, data)
close(self, exc_info=False)
get_user(self)

Get current user

get_password(self)

Get current user’s password

auth_publickey(self)

Public key authentication

auth_keyboardinteractive(self)

Keyboard-interactive authentication. Send username and password

auth_password(self)

Password authentication. Send username and password

class noc.core.script.cli.ssh.SSHCLI

Bases: noc.core.script.cli.base.CLI

name = ssh
default_port = 22
iostream_class