diff --git a/includes/filetransfer/ssh.inc b/includes/filetransfer/ssh.inc index 8113478a3a4f157896842c61bd7089a3b6ac42e2..56b944ca47dcbefb172b81bd2ad63c9b9a57d146 100644 --- a/includes/filetransfer/ssh.inc +++ b/includes/filetransfer/ssh.inc @@ -17,7 +17,7 @@ function __construct($jail, $username, $password, $hostname = "localhost", $port 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' => 21)); + throw new FileTransferException('SSH Connection failed to @host:@port', NULL, array('@host' => $this->hostname, '@port' => $this->port)); } if (!@ssh2_auth_password($this->connection, $this->username, $this->password)) { throw new FileTransferException('The supplied username/password combination was not accepted.');