Skip to content

Commit e38dcb8

Browse files
committed
include port on SSH2 connect
1 parent 4be110a commit e38dcb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SSHConnection.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function connect(): self
7070
{
7171
$this->sanityCheck();
7272

73-
$this->ssh = new SSH2($this->hostname);
73+
$this->ssh = new SSH2($this->hostname, $this->port);
7474

7575
if (!$this->ssh) {
7676
throw new RuntimeException('Error connecting to server.');

0 commit comments

Comments
 (0)