class SSH

The SSH connection class for the update module.

Hierarchy

File

core/lib/Drupal/Core/FileTransfer/SSH.php, line 8

Namespace

Drupal\Core\FileTransfer

Members

Name Modifiers Type Description
FileTransfer::$hostname protected property The hostname for this file transfer.
FileTransfer::$password protected property The password for this file transfer.
FileTransfer::$port protected property The port for this file transfer.
FileTransfer::$username protected property The username for this file transfer.
FileTransfer::checkPath protected final function Checks that the path is inside the jail and throws an exception if not.
FileTransfer::chmod public final function Changes the permissions of the specified $path (file or directory).
FileTransfer::copyDirectory public final function Copies a directory.
FileTransfer::copyFile public final function Copies a file.
FileTransfer::createDirectory public final function Creates a directory.
FileTransfer::findChroot function Returns the chroot property for this connection.
FileTransfer::fixRemotePath protected final function Returns a modified path suitable for passing to the server.
FileTransfer::removeDirectory public final function Removes a directory.
FileTransfer::removeFile public final function Removes a file.
FileTransfer::sanitizePath function Changes backslashes to slashes, also removes a trailing slash.
FileTransfer::setChroot function Sets the chroot and changes the jail to match the correct path scheme.
FileTransfer::__get function Implements the magic __get() method.
SSH::chmodJailed function Changes the permissions of the file / directory specified in $path Overrides ChmodInterface::chmodJailed
SSH::connect public function Connects to the server. Overrides FileTransfer::connect
SSH::copyDirectoryJailed protected function Copies a directory. Overrides FileTransfer::copyDirectoryJailed
SSH::copyFileJailed protected function Copies a file. Overrides FileTransfer::copyFileJailed
SSH::createDirectoryJailed protected function Creates a directory. Overrides FileTransfer::createDirectoryJailed
SSH::factory static function Defines a factory method for this class. Overrides FileTransfer::factory
SSH::getSettingsForm public function Returns a form to collect connection settings credentials. Overrides FileTransfer::getSettingsForm
SSH::isDirectory public function Implements Drupal\Core\FileTransfer\FileTransfer::isDirectory(). Overrides FileTransfer::isDirectory
SSH::isFile public function Checks if a particular path is a file (not a directory). Overrides FileTransfer::isFile
SSH::removeDirectoryJailed protected function Removes a directory. Overrides FileTransfer::removeDirectoryJailed
SSH::removeFileJailed protected function Removes a file. Overrides FileTransfer::removeFileJailed
SSH::__construct function Constructs a Drupal\Core\FileTransfer\FileTransfer object. Overrides FileTransfer::__construct

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!FileTransfer!SSH.php/class/SSH/8.1.x