disabling interactive password prompt with sshpeer

Eric Sumner ericsumner at fb.com
Fri Jan 16 14:43:27 CST 2015


I think what you want is to executeg ssh as ³ssh -o BatchMode=yes²

  ‹ Eric

On 1/16/15, 12:38 PM, "Thomas De Schampheleire"
<patrickdepinguin+mercurial at gmail.com> wrote:

>Hi,
>
>I'm trying to add remote ssh repo support to Kallithea. When the
>remote ssh repo is accessed using public keys, things work fine.
>
>However, when password authentication is used, the terminal that
>started the kallithea server process is presented with a password
>prompt, which obviously does not make sense in this case, as the user
>of the web interface does not have access to that server process.
>
>I want to keep things simple currently, and create the limitation that
>only key-based authentication is allowed, so that no interactive
>prompt is necessary. However, all my attempts are unsuccessful so far.
>
>The code creates an object of class sshpeer to interact with the
>remote repository. I tried adding interactive=False to the ui object,
>closing stdin, but none of this works. The password prompt is always
>presented.
>
>Any ideas on how to disable the interactive nature of sshpeer in this
>context?
>
>Thanks,
>Thomas
>_______________________________________________
>Mercurial-devel mailing list
>Mercurial-devel at selenic.com
>http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list