Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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 (Vicar) 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?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2021-01-20 17:56 GMT
Find Nodes?
    Voting Booth?