Skip to content

Commit bfa2d51

Browse files
committed
fixed typo
1 parent e98bdcb commit bfa2d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SSH2.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct($host, Authentication $auth, $port = 22) {
3838
$this->conn = ssh2_connect($host, $port);
3939
if ($this->is_connected()) {
4040
switch (get_class($auth)) {
41-
case 'SSH2Password':
41+
case 'Password':
4242
$username = $auth->getUsername();
4343
$password = $auth->getPassword();
4444
$this->authentication = ssh2_auth_password($this->conn, $username, $password);
@@ -48,7 +48,7 @@ public function __construct($host, Authentication $auth, $port = 22) {
4848
}
4949
break;
5050

51-
case 'SSH2Key':
51+
case 'Key':
5252
$username = $auth->getUsername();
5353
$publicKey = $auth->getPublicKey();
5454
$privateKey = $auth->getPrivateKey();

0 commit comments

Comments
 (0)