Skip to content

Commit 06cfcc2

Browse files
committed
Readd hostKey retrieval line
1 parent 7cfd98e commit 06cfcc2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/SSHConnection.php

+2
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public function fingerprint(string $type = self::FINGERPRINT_MD5)
121121
throw new RuntimeException('Unable to get fingerprint when not connected.');
122122
}
123123

124+
$hostKey = substr($this->ssh->getServerPublicHostKey(), 8);
125+
124126
switch ($type) {
125127
case 'md5':
126128
return strtoupper(md5($hostKey));

0 commit comments

Comments
 (0)