@@ -117,7 +117,7 @@ make sure that you have a suitable SSH client installed. On Debian/Ubuntu-based
117
117
systems, you may simply install it like this:
118
118
119
119
``` bash
120
- $ sudo apt install openssh-client
120
+ sudo apt install openssh-client
121
121
```
122
122
123
123
Its constructor simply accepts an SSH proxy server URL:
@@ -190,7 +190,7 @@ have a suitable SSH client installed. On Debian/Ubuntu-based systems, you may
190
190
simply install it like this:
191
191
192
192
``` bash
193
- $ sudo apt install openssh-client
193
+ sudo apt install openssh-client
194
194
```
195
195
196
196
Its constructor simply accepts an SSH proxy server URL:
@@ -511,7 +511,7 @@ can access your SSH proxy server on the command line like this:
511
511
512
512
``` bash
513
513
# test SSH access
514
- $ ssh
[email protected] echo hello
514
+
515
515
```
516
516
517
517
Because this class is designed to be used to create any number of connections,
@@ -537,7 +537,7 @@ For this to work, you will have to have the `sshpass` binary installed. On
537
537
Debian/Ubuntu-based systems, you may simply install it like this:
538
538
539
539
``` bash
540
- $ sudo apt install sshpass
540
+ sudo apt install sshpass
541
541
```
542
542
543
543
Note that both the username and password must be percent-encoded if they contain
@@ -560,7 +560,7 @@ This project follows [SemVer](https://semver.org/).
560
560
This will install the latest supported version:
561
561
562
562
``` bash
563
- $ composer require clue/reactphp-ssh-proxy:^1.3
563
+ composer require clue/reactphp-ssh-proxy:^1.4
564
564
```
565
565
566
566
See also the [ CHANGELOG] ( CHANGELOG.md ) for details about version upgrades.
@@ -575,15 +575,15 @@ client binary, so you'll have to make sure that you have a suitable SSH client
575
575
installed. On Debian/Ubuntu-based systems, you may simply install it like this:
576
576
577
577
``` bash
578
- $ sudo apt install openssh-client
578
+ sudo apt install openssh-client
579
579
```
580
580
581
581
Additionally, if you use [ password authentication] ( #password-authentication )
582
582
(not recommended), then you will have to have the ` sshpass ` binary installed. On
583
583
Debian/Ubuntu-based systems, you may simply install it like this:
584
584
585
585
``` bash
586
- $ sudo apt install sshpass
586
+ sudo apt install sshpass
587
587
```
588
588
589
589
* Running on [ Windows is currently not supported] ( https://github.com/clue/reactphp-ssh-proxy/issues/12 ) *
@@ -594,13 +594,13 @@ To run the test suite, you first need to clone this repo and then install all
594
594
dependencies [ through Composer] ( https://getcomposer.org/ ) :
595
595
596
596
``` bash
597
- $ composer install
597
+ composer install
598
598
```
599
599
600
600
To run the test suite, go to the project root and run:
601
601
602
602
``` bash
603
- $ vendor/bin/phpunit
603
+ vendor/bin/phpunit
604
604
```
605
605
606
606
The test suite contains a number of tests that require an actual SSH proxy server.
@@ -610,8 +610,8 @@ environment and prefix this with a space to make sure your login credentials are
610
610
not stored in your bash history like this:
611
611
612
612
``` bash
613
- $ export SSH_PROXY=alice:
[email protected]
614
- $ vendor/bin/phpunit
613
+ export SSH_PROXY=alice:
[email protected]
614
+ vendor/bin/phpunit
615
615
```
616
616
617
617
## License
0 commit comments