How to create a repository with ssh:// access on a server

I have a small machine running Debian and can access it via ssh -l user host. Now I created a git repository in a folder on that machine.

The thing that I can not figure out is: What do I have to do, that git would let me access that repository in the way git push ssh://yourserver.com/~you/proj.git +master

  • Forge + Git + Laravel issue
  • show commits since branch creation
  • Creating new file with touch command in PowerShell error message
  • Remove a merge from master
  • Any way I can restore all my lost local work which was destroyed using GitHub?
  • Data integrity in Git?
  • Or in other words: what means ssh://, and how do I set up access to a repository using that protocol?

    Thank you for your help/hints!

  • git Fatal: Out of memory, malloc failed on branch push
  • Git authentication for perl CGI-Script via .netrc
  • IntelliJ Idea - Git fetch from only one of multiple remotes
  • git seems confused about whether a file has changed (with autocrlf=true option)
  • Install Git before Boxen, or Boxen before Git?
  • Retrieving branch names from within a post-checkout hook
  • 3 Solutions collect form web for “How to create a repository with ssh:// access on a server”

    I’ve been through this whole problem before. I ended up settling on gitolite to manage git & ssh. It’s very easy to install (if you use the package method) and it makes maintaining repositories easy.

    See this Pro Git.
    In particular, see Chapter 4, “Git on the server”.

    It’s quite easy to setup =)

    Lot’s of people use gitosis for this. But that does not support ~you.

    Git Baby is a git and github fan, let's start git clone.