Installing Git into a Synology NAS

I have a Synology NAS at home, and I was trying to install Git to reduce the number of private projects I have at Bitbucket.

After using the package manager to install Synology’s Git package, I tried to access Git remotely, but I was received with a message telling me that:

The solution was to create that directory in my user homes directory. After doing it, I got an interactive Git shell when I open an ssh session.

Facebooktwittergoogle_plusredditpinterestlinkedinmailby feather

3 thoughts on “Installing Git into a Synology NAS

  1. Göran Andersson

    I am struggling with git on my Synology NAS and have the same problem as you had, but it seems that in your case the problem went away. However, mine is still there, but adding an empty ‘git-shell-commands’ catalog in the home ditto of the NAS user made some improvement. I can now do a SSH login with that user and get a prompt: git> (‘git’ is the user name), but thats it! No commands can be executed, as for instance cd /etc. I am puzzled by your success! Did you have to do anything else?

    My NAS: DS216se
    OS ver: DSM 5.2-5644 Update 5

  2. Eddy


    Thanks for your post it saved me from getting a couple of more grey hairs. For anyone else having this issue. I connected to my DS213j NAS via SSH. Below are the exact commands that I ran. Hope this helps someone else.

    ssh admin@
    cd /var/services/homes/
    sudo mkdir git-shell-commands
    sudo chown :users git-shell-command

  3. Eddy

    Posting again noticed my earlier post something got cut out.

    ssh admin@””
    cd /var/services/homes/”git user”
    sudo mkdir git-shell-commands
    sudo chown “git user”:users git-shell-command

Leave a Reply

Your email address will not be published. Required fields are marked *