ssh.channel¶
-
class
ssh.channel.Channel¶ -
accept_x11(self, int timeout_ms)¶
-
change_pty_size(self, int cols, int rows)¶
-
close(self)¶
-
get_exit_status(self)¶
-
get_session(self)¶
-
is_closed(self)¶
-
is_eof(self)¶
-
is_open(self)¶
-
open_auth_agent(self)¶
-
open_forward(self, remotehost, int remoteport, sourcehost, int sourceport)¶
-
open_session(self)¶
-
open_x11(self, sourcehost, int sourceport)¶
-
poll(self, bool is_stderr=False)¶
-
poll_timeout(self, int timeout, bool is_stderr=False)¶
-
read(self, uint32_t size=1048576, bool is_stderr=False)¶
-
read_nonblocking(self, uint32_t size=1048576, bool is_stderr=False)¶
-
read_timeout(self, int timeout, uint32_t size=1048576, bool is_stderr=False)¶
-
request_auth_agent(self)¶
-
request_env(self, name, value)¶
-
request_exec(self, cmd)¶
-
request_pty(self)¶
-
request_pty_size(self, terminal, int col, int row)¶
-
request_send_break(self, uint32_t length)¶
-
request_send_signal(self, sig)¶
-
request_sftp(self)¶
-
request_shell(self)¶
-
request_subsystem(self, subsystem)¶
-
request_x11(self, int screen_number, bool single_connection=True)¶
-
select(self, channels, outchannels, maxfd, readfds, timeout=None)¶
-
send_eof(self)¶
-
set_blocking(self, bool blocking)¶
-
set_counter(self, counter)¶
-
window_size(self)¶
-
write(self, data)¶ Write data to stdin on channel.
- Parameters
data (str or bytes) – Data to write.
- Returns
Return code and bytes written tuples.
- Return type
(int, int)
-
write_stderr(self, data)¶ Write data to stderr.
- Parameters
data (str or bytes) – Data to write.
- Returns
Return code and bytes written tuples.
- Return type
(int, int)
-
closed¶
-
session¶ Originating session.
-