OpenSSH can be configured to only allow users to run certain commands rather than being given a login shell. You should be able to setup an otherwise unprivileged account which can only run "sudo start_my_service" (and I believe the authenticating SSH key is available to that so you could link back to the remote user).

I'd just be more comfortable using something off the shelf and highly visible (that's been gone over by lots of eyeballs) like OpenSSH before going it alone. (Not that you're doing it completely from scratch since you'd be using a sane and tested interface in GSSAPI, just that any bugs you put in (and we all are bound to put them in sometime . . . :) in your implementation wouldn't be subject to external scrutiny))

(And I was afraid PAM would be a wild goose chase; now that I think about it it's more about controlling local authorization once the remote side's authenticated. NEED MOR CAFFEINE . . . )

The cake is a lie.
The cake is a lie.
The cake is a lie.


In reply to Re^3: How can I write a Kerberos service in Perl? by Fletch
in thread How can I write a Kerberos service in Perl? by thparkth

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.