<div dir="ltr">Instead of password, why don't you use rsa keys? That way, you don't have to give your password away. <div>Create two sets of rsa keys, one for you and one for the user, then add both private keys to authorized_keys on the server, you keep your private key, and the user will get the second private key.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 9, 2017 at 1:51 PM, Pete Soper via TriEmbed <span dir="ltr"><<a href="mailto:triembed@triembed.org" target="_blank">triembed@triembed.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Folks,<br>
  I have a problem that is off topic, but there is past precedent for us helping each other with whatever. I'm hoping somebody can sit with me and my laptop for a few minutes at tonight's meeting and help me implement a secure but strictly limited access scenario with my personal domain server.<br>
<br>
  I have a git repo on my personal domain server and can push/pull remotely using my user account id and password on a server running an old version of CentOS (2.6 kernel).<br>
<br>
  What I need is to enable alternate access by a second party where the person doing the access a) cannot use it for anything except a git push or pull, b) uses a different password from my regular one, and c) can instantly lose this access if I'm told by my ISP that this dog won't hunt in regards to his terms of service.<br>
<br>
  My simple minded understanding of this is that I need to arrange a second ssh password, which I think I can figure out, and somehow only allow that password to be used for git commands (which I have no clue about). I think this latter detail is either impossible without a second user account on the server, and that isn't an option, or else with some additional authentication magic that recognizes my regular password and proceeds or this other password that redefines PATH or something to make all but git inaccessible. Or maybe somebody knows of a virtually nearby log I can fall over.<br>
<br>
<br>
-Pete<br>
<br>
<br>
______________________________<wbr>_________________<br>
Triangle, NC Embedded Computing mailing list<br>
<a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
<a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailm<wbr>an/listinfo/triembed_triembed.<wbr>org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
</blockquote></div><br></div>