Skip to content

Commit 261d2ba

Browse files
committed
Update documentation to remove mention of SSH2 PHP extension and update private key docs
1 parent 252d3c2 commit 261d2ba

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,7 @@ The PHP SSH Connection package provides an elegant syntax to connect to SSH serv
77

88
## Installation
99

10-
First, you may need to install the PHP SSH2 extension. In Ubuntu and other Debian-based systems, you can install this extension by running the following command.
11-
12-
```bash
13-
sudo apt install php-ssh2
14-
```
15-
16-
For other operating systems, see the [PHP SSH2 extension documentation](https://www.php.net/manual/en/book.ssh2.php).
17-
18-
You can then run the following Composer command to install the PHP SSH Connection package.
10+
You can install the PHP SSH Connection package by running the following Composer command.
1911

2012
```bash
2113
composer require divineomega/php-ssh-connection
@@ -29,7 +21,7 @@ $connection = (new SSHConnection())
2921
->onPort(22)
3022
->as('demo')
3123
->withPassword('password')
32-
// ->withKeyPair($publicKeyPath, $privateKeyPath)
24+
// ->withPrivateKey($privateKeyPath)
3325
->connect();
3426

3527
$command = $connection->run('echo "Hello world!"');

0 commit comments

Comments
 (0)