Skip to content

Commit 9d93d71

Browse files
authored
Merge pull request #676 from anhu/shell_doc
Document how to try out the shell feature.
2 parents 892c26d + 4c8be76 commit 9d93d71

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,37 @@ or define `WOLFSSH_SHELL`:
396396
$ ./configure --enable-shell
397397
$ make
398398

399+
To try out this functionality, you can use the example echoserver and client.
400+
In a terminal do the following to launch the server:
401+
402+
$ ./examples/echoserver/echoserver -P <user>:junk
403+
404+
And in another terminal do the following to launch the example client:
405+
406+
$ ./examples/client/client -t -u <user> -P junk
407+
408+
Note that `<user>` must be the user name of the current user that is logged in.
409+
399410
By default, the echoserver will try to start a shell. To use the echo testing
400411
behavior, give the echoserver the command line option `-f`.
401412

402413
$ ./examples/echoserver/echoserver -f
403414

415+
To use the shell feature with wolfsshd add `--enable-sshd` to your configure
416+
command and use the following command:
417+
418+
$ sudo ./apps/wolfsshd/wolfsshd -D -h keys/gretel-key-ecc.pem -p 11111
419+
420+
If it complains about a bad `sshd_config` file, simply copy it to another file
421+
and remove the offending line that it complains about and use the `-f` command
422+
line parameter to point to the new file.
423+
424+
You can then connect to the `wolfsshd` server with ssh:
425+
426+
$ ssh <user>@localhost -p 11111
427+
428+
Note that `<user>` must be the user name of the current user that is logged in.
429+
404430
CURVE25519
405431
==========
406432

0 commit comments

Comments
 (0)