Skip to content

Commit

Permalink
Update documentation to remove mention of SSH2 PHP extension and upda…
Browse files Browse the repository at this point in the history
…te private key docs
  • Loading branch information
DivineOmega committed Aug 8, 2019
1 parent 252d3c2 commit 261d2ba
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,7 @@ The PHP SSH Connection package provides an elegant syntax to connect to SSH serv

## Installation

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.

```bash
sudo apt install php-ssh2
```

For other operating systems, see the [PHP SSH2 extension documentation](https://www.php.net/manual/en/book.ssh2.php).

You can then run the following Composer command to install the PHP SSH Connection package.
You can install the PHP SSH Connection package by running the following Composer command.

```bash
composer require divineomega/php-ssh-connection
Expand All @@ -29,7 +21,7 @@ $connection = (new SSHConnection())
->onPort(22)
->as('demo')
->withPassword('password')
// ->withKeyPair($publicKeyPath, $privateKeyPath)
// ->withPrivateKey($privateKeyPath)
->connect();

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

0 comments on commit 261d2ba

Please sign in to comment.