Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: SSH daemon in Perl?

by robs87 (Novice)
on Jun 22, 2016 at 23:07 UTC ( [id://1166326]=note: print w/replies, xml ) Need Help??


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

It wouldn't be practical to create a user account on the server for each user. Plus, doing so would lead to quite a few security concerns. Authentication will be handled by the Perl program. Perhaps OpenSSH can be configured to pass the username and password to the Perl program as arguments?

I'd rather not execute the Perl program as root. Perhaps OpenSSH has an option to execute it as a different user?

Replies are listed 'Best First'.
Re^5: SSH daemon in Perl?
by haukex (Archbishop) on Jun 23, 2016 at 19:43 UTC

    Hi robs87,

    You haven't explained why you need this kind of SSH connection like you described here. Doing so would help in that maybe there is an easier solution to the problem you're trying to solve. For example, have you considered something like telnet+SSL?

    I haven't worked much with OpenSSH so this is just an educated guess, but you might want to look into PAM (pluggable authentication modules), I believe OpenSSH can be configured to use custom PAM modules which might give you the ability to have OpenSSH authenticate with something other than UNIX accounts.

    Hope this helps,
    -- Hauke D

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-18 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found