Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: SSH daemon in Perl?

by robs87 (Novice)
on Jun 22, 2016 at 18:52 UTC ( #1166292=note: print w/replies, xml ) Need Help??


in reply to Re: SSH daemon in Perl?
in thread SSH daemon in Perl?

Thanks for the response.

I could configure openssh-server to execute a Perl program upon connection, but that would require user accounts on the server. I would also lose a lot of control if the connections were handled by OpenSSH.

The goal is to create a self-contained Perl program (it's fine if it requires external modules) that listens on port 22. For simplicity, it can be a basic echo server. I'll connect by entering ssh localhost and it will echo back the lines I enter.

Replies are listed 'Best First'.
Re^3: SSH daemon in Perl?
by perlfan (Priest) on Jun 22, 2016 at 19:58 UTC
    If all you want is a secure layer (and no users) maybe base your application on HTTPS (e.g., using Dancer2 and something like starman) rather than trying to emulate what ssh does.

      It's important that the daemon can be accessed from a standard SSH client, such as the OpenSSH client or PuTTY.

      Go has crypto/ssh, Java has Apache SSHD, Python has Twisted. Are there no similar frameworks for Perl?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1166292]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2020-08-06 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which rocket would you take to Mars?










    Results (39 votes). Check out past polls.

    Notices?