We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca10dce commit 08a6c46Copy full SHA for 08a6c46
README.md
@@ -15,6 +15,8 @@ composer require divineomega/php-ssh-connection
15
16
## Usage
17
18
+See the following basic usage instructions.
19
+
20
```php
21
$connection = (new SSHConnection())
22
->to('test.rebex.net')
@@ -32,3 +34,14 @@ $command->getError(); // ''
32
34
$connection->upload($localPath, $remotePath);
33
35
$connection->download($remotePath, $localPath);
36
```
37
38
+For security, you can fingerprint the remote server and verify the fingerprint remain the same
39
+upon each subsequent connection.
40
41
+```php
42
+$fingerprint = $connection->fingerprint();
43
44
+if ($newConnection->fingerprint() != $fingerprint) {
45
+ throw new Exception('Fingerprint does not match!');
46
+}
47
+```
0 commit comments