Find the answer to your Linux question:
Results 1 to 2 of 2
Hello All, I am setting up a Git server so I and push repos from my laptop to the server for backup purposes. I have set up git on my ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2012
    Posts
    2

    Git Server and rights for ssh


    Hello All,

    I am setting up a Git server so I and push repos from my laptop to the server for backup purposes.

    I have set up git on my laptop and I have setup egit for eclipse.

    I have installed Git on my server running ubuntu 12.10,
    ssh has been installed and is working.

    I have created a bare repo.git and have ran the git init --bare
    --shared command to set up the repo.

    When I attempt to do the push from the laptop to the server ssh errors out, I am assuming because of file and directory permissions as I have to run sudo to access then from a manual ssh command.

    My question: I do not want to chmod the files directories (repos) as the server is connected to the internet.

    What is the best solution to grant read write access so eclipse can push the local repo to the server repo using ssh.
    (I have not setup SSH2 keys yet. my laptop is running os x)

    Thanks

    Joe

  2. #2
    Just Joined!
    Join Date
    Nov 2012
    Posts
    2
    I believe I was able to address my own problem, I performed a chown to the user who ssh's into the server to the git folder and files and performed a reboot.

    This fixed the problem.

    Thanks

    Joe

Posting Permissions

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