forum/Ssh remote on NASgit-annexhttp://git-annex.branchable.com/forum/Ssh_remote_on_NAS/git-annexikiwiki2017-01-30T22:26:46Zcomment 1http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_1_1dd8a0d0e70a1fb36fce62e89c99b404/joeyh.name2014-07-11T19:46:05Z2014-07-11T19:46:05Z
<p>How did you set your PATH? Note that the bash shell provides a lot of dotfiles which you can set the PATH in -- and reuses to read any single one of them when a noninteractive login is made to run a command.</p>
<p>It might help to install git on the NAS. It's included in the git-annex tarball, but not in a way that will put it on PATH; only in a way that will let git-annex use it.</p>
comment 2http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_2_261601313d8825c52322949b8509bc74/feulif2014-07-15T18:03:56Z2014-07-15T18:03:56Z
<blockquote><p>How did you set your PATH? Note that the bash shell provides a lot of dotfiles which you can set the PATH in -- and reuses to read any single one of them when a noninteractive login is made to run a command.</p></blockquote>
<p>Actually I didn't set the PATH: I've just sim-linked executable files from git-annex stand-alone folder to a directory that was in my PATH already.</p>
<blockquote><p>It might help to install git on the NAS. It's included in the git-annex tarball, but not in a way that will put it on PATH; only in a way that will let git-annex use it.</p></blockquote>
<p>It was installed, bud I've removed it because it was "conflicting" with the one used by git-annex. That is, when I ran any "git annex ..." command, git was complaining it could not find git-annex (because my nas was running the installed git binary file).
Without git, I don't have this conflict anymore and I can effectively use git-annex when I'm logged in my NAS, but I still can't add it as an SSH remote.</p>
comment 3http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_3_ed602f4f972b78bce4f62bdfca8cfe47/joeyh.name2014-07-15T18:55:58Z2014-07-15T18:55:58Z
<p>I don't think it was a good idea to remove git from the NAS. To set up a git remote, you necessarily need to have git installed on the remote.</p>
<p><code>git annex</code> should work as long as git-annex is somewhere in PATH -- unless your build of git is very strange and does not check PATH for git-foo commands.
Even if this was the case, you could run <code>git-annex</code> instead.</p>
comment 4http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_4_423244f174123318f1ece7b5794aeea5/feulif2014-07-17T22:24:45Z2014-07-17T22:24:45Z
<p>First of all, I understand this is more a nas-related issue rather than a git-annex-related one, so thank you for your support and valuable software.</p>
<p>But I'm still struggling with this error.</p>
<p>Now I've reinstalled git on the NAS and, as previously, I can run every git command when I'm logged in.
But when I try to sync my PC with the git remote on the NAS, then I get this error:</p>
<pre><code>git annex sync
sh: git-annex-shell: command not found
sh: git-upload-pack: command not found
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
commit
ok
git-annex: no branch is checked out
</code></pre>
<p>Can this be really related to some access right? What user is git annex using when syncing with an SSH remote (e.g. admin) ? the one I specified when setting up the remote? where is it complaining about git-upload-pack non found, on the nas or on the PC I'm syncing from?</p>
comment 5http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_5_07348ed61ccdd93417365f1525a05bf2/joey2014-10-28T20:41:42Z2014-10-28T20:26:08Z
<p>git-upload-pack is a git command, which is not present in PATH
on your NAS when git sshes in and tries to run it.</p>
comment 6http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_6_26d444afe2edea3500f80bb5c62ba491/torpidus2016-03-16T22:23:26Z2016-03-16T22:23:26Z
<p>Hello Fabio,
I came across this posting from you one year ago. Since I'm also using a QNAP NAS for hosting several of my git-annex repos, it would be very valuable to hear some details about your setup. My setup currently consists of a virtual machine hosted on the NAS with an ordinary linux, nothing special. Would love to have git-annex installed on the NAS operating system rather, which is unfortunately not that easy.</p>
<p>Even in case you may not have been able to solve the issue described in this thread, can you maybe tell for example how you solved the issue of the QNAP operating system purging self-installed software? Or how you managed to let the pre-installed SSH daemon let other users than "admin" log-in?</p>
<p>Probably we're the first ones ever trying this, so it would be very useful to collect all about QNAP NAS and the usage of git-annex on these devices.</p>
comment 7http://git-annex.branchable.com/forum/Ssh_remote_on_NAS/comment_7_3c70f8b9ac2a77462c6f21929c02d9d3/Fabio2017-01-30T22:26:46Z2017-01-30T22:26:46Z
<p>Hello Torpidus,
I've never managed to get SSH working properly on my NAS because of the issues you have reported and so I eventually gave up with using git-annex on it.
But I'm back here every now and then to check how this wonderful software is going on and if anyone has made it work on my NAS <img src="http://git-annex.branchable.com/smileys/smile.png" alt=":)" /></p>