Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^8: SSH daemon in Perl?

by robs87 (Novice)
on Jun 24, 2016 at 14:10 UTC ( [id://1166503]=note: print w/replies, xml ) Need Help??


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

Yes, that's the kind of of functionality I would like. Connect to the server and execute the program (as the service user) without checking whether $USER (sent by the SSH client) exists.

However, the OpenSSH server doesn't seem to have options for this. Or does it?

Replies are listed 'Best First'.
Re^9: SSH daemon in Perl?
by soonix (Canon) on Jun 26, 2016 at 21:36 UTC
    Don't know enough to help with OpenSSH server config. However, the main problem I see is: you want this on port 22.
    • this will interfere with "normal" ssh login (which also uses port 22) for that machine
    • Port 22 is privileged, you need root for this
    You could take the approach many git servers do: the user named "git" has a special shell allowing only specific operations (that would correspond to your script). Since you need to be root anyway(*), this looks like the easier approach. Your users then connect
    ssh yourserviceuser@yourhost
    and if your script needs their "real" credentials, it can ask them (or, like git, distinguishes them by their SSH key).

    (*)Update: for configuration, not for running it

Log In?
Username:
Password:

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

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

    No recent polls found