diff --git a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
index e1213925c69d3cfee50eed0fc80ac0e5d7a27c12..d64624b421ca0c3d2124cdd5d9e12343571c550f 100644
--- a/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
+++ b/core/lib/Drupal/Core/FileTransfer/FileTransfer.php
@@ -110,7 +110,7 @@ function __get($name) {
   /**
    * Connects to the server.
    */
-  abstract protected function connect();
+  abstract public function connect();
 
   /**
    * Copies a directory.
diff --git a/core/lib/Drupal/Core/FileTransfer/Local.php b/core/lib/Drupal/Core/FileTransfer/Local.php
index a0973be5c6633f07762f7bfc1096b446d7014a6c..4f65e2273f0a965c59a41965789984a0541afbee 100644
--- a/core/lib/Drupal/Core/FileTransfer/Local.php
+++ b/core/lib/Drupal/Core/FileTransfer/Local.php
@@ -15,7 +15,7 @@ class Local extends FileTransfer implements ChmodInterface {
   /**
    * Implements Drupal\Core\FileTransfer\FileTransfer::connect().
    */
-  function connect() {
+  public function connect() {
     // No-op
   }
 
diff --git a/core/lib/Drupal/Core/FileTransfer/SSH.php b/core/lib/Drupal/Core/FileTransfer/SSH.php
index 82edcda5a120d3d59c62bb9083a0c005ae84c63c..91e6e5f70ddb6c4dae9ee0aae3ea7289cbd82cb6 100644
--- a/core/lib/Drupal/Core/FileTransfer/SSH.php
+++ b/core/lib/Drupal/Core/FileTransfer/SSH.php
@@ -26,7 +26,7 @@ function __construct($jail, $username, $password, $hostname = "localhost", $port
   /**
    * Implements Drupal\Core\FileTransfer\FileTransfer::connect().
    */
-  function connect() {
+  public function connect() {
     $this->connection = @ssh2_connect($this->hostname, $this->port);
     if (!$this->connection) {
       throw new FileTransferException('SSH Connection failed to @host:@port', NULL, array('@host' => $this->hostname, '@port' => $this->port));
diff --git a/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php b/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
index 92e736f2b4c420363fc61b255c814b1796ef4762..1d13960947368ae61e59065665091ce1bb6b4220 100644
--- a/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
+++ b/core/modules/system/src/Tests/FileTransfer/TestFileTransfer.php
@@ -32,7 +32,7 @@ static function factory($jail, $settings) {
     return new TestFileTransfer($jail, $settings['username'], $settings['password'], $settings['hostname'], $settings['port']);
   }
 
-  function connect() {
+  public function connect() {
     $this->connection = new MockTestConnection();
     $this->connection->connectionString = 'test://' . urlencode($this->username) . ':' . urlencode($this->password) . "@$this->host:$this->port/";
   }