diff --git a/dvc/remote/ssh/connection.py b/dvc/remote/ssh/connection.py index 8362857b8..9d64ee5b4 100644 --- a/dvc/remote/ssh/connection.py +++ b/dvc/remote/ssh/connection.py @@ -289,15 +289,3 @@ class SSHConnection: def cp(self, src, dest): self.makedirs(posixpath.dirname(dest)) self.execute("cp {} {}".format(src, dest)) - - def open_max_sftp_channels(self): - # If there are more than 1 it means we've already opened max amount - if len(self._sftp_channels) <= 1: - while True: - try: - self._sftp_channels.append(self._ssh.open_sftp()) - except paramiko.ssh_exception.ChannelException: - if not self._sftp_channels: - raise - break - return self._sftp_channels