Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2007
    Posts
    40
    Points
    5,978
    Level
    32

    Installing Git for all users on interworx installation?

    Hello, I would like to install and use Git on our server with interworx installed.

    We want to allow each interworx account to have access to their home directory with git.

    I see someone figured out how to do this with cPanel (see the top comment):
    https://stackoverflow.com/a/18528174/482115


    Has anyone found how to get this working with interworx?


    edit: got it working, first check if git is already installed. if not, download git source and install. It does not interfere with iworx.
    Last edited by deheleri; 08-23-2017 at 08:10 AM.

  2. #2
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi Deheleri
    Many thanks, but I believe git is already installed and working, from what I can see
    git --version
    git version 1.7.1
    paths
    /etc/bash_completion.d/git
    /usr/libexec/git-core/git
    /usr/bin/git
    What IW version are you running
    I do not use git, but have tested from a siteworx user in SSH, and can see commands
    I hope that helps a little but sorry if I do not understand
    Many thanks
    John

  3. #3
    Join Date
    Apr 2012
    Posts
    2,127
    Points
    21,893
    Level
    64
    Hi
    Thought I would check out Git, so here is my test so far.
    Many thanks
    John
    check for existent key
    ls -al ~/.ssh
    if no key, generate a key
    ssh-keygen -t rsa -b 4096 -C "me@email.address"
    Ensure the ssh-agent is running
    eval $(ssh-agent -s)
    Add your SSH private key to the ssh-agent
    ssh-add ~/.ssh/id_rsa
    Add the SSH key to your GitHub account (login to your github account from a browser)
    Below is my test
    [masterur@3sh ~]$ ls -al ~/.ssh
    ls: cannot access /home/masterur/.ssh: No such file or directory
    [masterur@3sh ~]$ ssh-keygen -t rsa -b 4096 -C "me@email.address"
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/masterur/.ssh/id_rsa):
    Created directory '/home/masterur/.ssh'.
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/masterur/.ssh/id_rsa.
    Your public key has been saved in /home/masterur/.ssh/id_rsa.pub.
    The key fingerprint is:
    dc:f1:32:87:4b:09---------------------:62 me@email.address
    The key's randomart image is:
    +--[ RSA 4096]----+
    | .=o |
    | ..o+ . |
    | o.+o. E o|
    | o =.= o = |
    | S B o . |
    | . = |
    | . |
    | |
    | |
    +-----------------+
    [masterur@3sh ~]$ eval $(ssh-agent -s)
    Agent pid 24935
    [masterur@3sh ~]$ ssh-add ~/.ssh/id_rsa
    Enter passphrase for /home/masterur/.ssh/id_rsa:
    Identity added: /home/masterur/.ssh/id_rsa (/home/masterur/.ssh/id_rsa)
    [masterur@3sh ~]$ cd /home/masterur/.ssh
    [masterur@3sh .ssh]$ ls
    id_rsa id_rsa.pub
    [masterur@3sh .ssh]$ vi id_rsa.pub
    [masterur@3sh .ssh]$ ssh -T -p 443 git@ssh.github.com
    The authenticity of host '[ssh.github.com]:443 ([192.30.253.122]:443)' can't be established.
    RSA key fingerprint is 16:27:ac:a-------------------:a6:48.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added '[ssh.github.com]:443,[192.30.253.122]:443' (RSA) to the list of known hosts.
    Hi d2d4j! You've successfully authenticated, but GitHub does not provide shell access.
    [masterur@3sh .ssh]$
    Attached Images Attached Images  

  4. #4
    Join Date
    Jul 2007
    Posts
    40
    Points
    5,978
    Level
    32
    I am on an older OS without Git, I should have mentioned that.

    I didn't realize it was already installed on newer boxes. I will assume it's fine and report back if not.


    edit: installed from source and works fine. Thanks d2d
    Last edited by deheleri; 08-23-2017 at 08:09 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •