We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ssh.sftp
1 parent 5981c72 commit c1ce189Copy full SHA for c1ce189
pwnlib/tubes/ssh.py
@@ -550,10 +550,6 @@ class ssh(Timeout, Logger):
550
#: Paramiko SSHClient which backs this object
551
client = None
552
553
- #: Paramiko SFTPClient object which is used for file transfers.
554
- #: Set to :const:`None` to disable ``sftp``.
555
- sftp = None
556
-
557
#: PID of the remote ``sshd`` process servicing this connection.
558
pid = None
559
@@ -719,6 +715,9 @@ def cwd(self, cwd):
719
715
720
716
@property
721
717
def sftp(self):
718
+ """Paramiko SFTPClient object which is used for file transfers.
+ Set to :const:`None` to disable ``sftp``.
+ """
722
if not self._tried_sftp:
723
try:
724
self._sftp = self.transport.open_sftp_client()
0 commit comments