in reply to Re^5: SSH daemon in Perl?
in thread SSH daemon in Perl?
The original goal was to write an SSH daemon in Perl, but haukex suggested using the OpenSSH server instead.
Under this model, there will be no Perl SSH daemon. Instead, there will be a simple Perl program that reads input from STDIN and sends output to STDOUT. This program will be executed by OpenSSH upon connection.
Yes, OpenSSH will execute this program as a single non-privileged user. However, it's important that I do not have to log in as this user upon connection.
Here's a sample of what the session output should look like:
$ ssh abc123@localhost Hello, world! Hello, world! $ ssh asdfghjkl@localhost This is a simple echo server as an example. This is a simple echo server as an example.
Notice that no authentication takes place. It proceeds to execute echo.pl (as the single non-privileged user) regardless of the username that was sent.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: SSH daemon in Perl?
by soonix (Chancellor) on Jun 24, 2016 at 06:59 UTC | |
by robs87 (Novice) on Jun 24, 2016 at 14:10 UTC | |
by soonix (Chancellor) on Jun 26, 2016 at 21:36 UTC |