Failed to execute git clone

Discussion in 'Installation/Configuration' started by brody182, Nov 21, 2018.

  1. brody182

    brody182 Member

    fixed by copying over the server ssl certificate in jailed user
     
    Last edited: Nov 25, 2018
  2. Nap

    Nap Member

    @brody182 could you be more specific please? Paths/filenames?
    I'm getting an error message for the jailed user:
    Code:
    Cloning into 'example'...
    fatal: Unable to find remote helper for 'https'
     
  3. Jesse Norell

    Jesse Norell Well-Known Member

    Probably you need /etc/ssl/certs/ca-certificates.crt in your jail. On debian 9 this should work for the git section:
    Code:
    [git]
    comment = Fast Version Control System
    executables = /usr/bin/git*, /bin/uname, /usr/bin/expr
    directories = /usr/share/git-core, /usr/lib/git-core
    includesections = editors, netbasics, basicshell
    
    And /etc/ssl/certs/ca-certificates.crt is included in netbasics.
     
  4. Tata

    Tata New Member

    for debian 9 additional you must copy from linux system to jailkit subsytem (links + files):
    /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4
    /lib/x86_64-linux-gnu/libexpat.so.1
    /usr/lib/x86_64-linux-gnu/libnghttp2.so.14
    /usr/lib/x86_64-linux-gnu/librtmp.so.1
    /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2
    /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2
    /usr/lib/x86_64-linux-gnu/libsasl2.so.2
     

Share This Page