Skip to content

Commit

Permalink
Merge pull request #10 from sonaldo/master
Browse files Browse the repository at this point in the history
include port on SSH2 connect
  • Loading branch information
DivineOmega authored May 27, 2020
2 parents 6d5dcae + e38dcb8 commit d6c8326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SSHConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function connect(): self
{
$this->sanityCheck();

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

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

0 comments on commit d6c8326

Please sign in to comment.