Can't ssh to the host after installing gitosis

In the process, I issued gitosis-init <FILENAME.pub with root and delete /root/repositories.
Then i did everything done.
But when i ssh to the host today,it reports

PTY allocation request failed on channel 0
ERROR:gitosis.app:Configuration does not exist: [Errno 2] No such file or directory: '/root/.gitosis.conf'

I wonder what can i do? It’s really urgent.Please help!

  • Running git from Windows Cmd line: Where are key files?
  • What is the correct way to configure Qt Creator to use Git?
  • Heroku push master ssh problem
  • fatal: cannot exec '/home/<user>/.ssh': Permission denied when using Git
  • Could not read from remote repository. SwiftyDropbox
  • Git Push Hangs After a Few Pushes
  • Git is failing to push in puttycyg because of SSH error
  • GitHub collaborators cannot download private repo via NPM package
  • One Solution collect form web for “Can't ssh to the host after installing gitosis”

    First, please use gitolite, not gitosis (which is obsolete and stagnant for the past 3 years)

    Second, if you follow this tutorial, the initialization step is supposed to create the repositories folder, which means you shouldn’t delete it just after executing gitosis-init.

    Run this command to add your public key to the gitosis-admin project, that way you can check it out and configure git:

    sudo -H -u git gitosis-init < /tmp/id_rsa.pub
    

    Now for good measure, make sure the post-update hook is set to executable. This sometimes doesn’t get set up correctly with older versions of the setuptools:

    sudo chmod u+x /var/git/repositories/gitosis-admin.git/hooks/post-update
    
    Git Baby is a git and github fan, let's start git clone.