Skip to content

Commit

Permalink
Update README.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Herzult committed Jun 15, 2014
1 parent 1a2cf40 commit 1ed552d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ The available authentication are:

If you use an ssh config file you can load your authentication and configuration from it as follows:

<?php
```php
<?php

$configuration = new Ssh\SshConfigFileConfiguration('~/.ssh/config', 'my-host');
$configuration = new Ssh\SshConfigFileConfiguration('~/.ssh/config', 'my-host');

$session = new Session($configuration, $configuration->getAuthentication());
$session = new Session($configuration, $configuration->getAuthentication());
```

This will pick up your public and private keys from your config file Host and Identity declarations.

Expand Down Expand Up @@ -129,7 +131,7 @@ See the `Ssh\Publickey` class for more details on the available methods.

The session provides the `getExec()` method to access the exec subsystem

```
```php
<?php

// ... the session creation
Expand Down

0 comments on commit 1ed552d

Please sign in to comment.