File: Help_with_git-annex_and_controlmaster.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (42 lines) | stat: -rw-r--r-- 1,414 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
All,

I am quite new to `git-annex` so it's possible/probable this is a FAQ, but my search-fu has failed me.

Namely, I'm testing out `git-annex` and have a sample repo on a remote server, let's call it "foo". Now I have SSH Controlmaster setup because foo has both a password and PIN that need entered so I usually do a `screen` and run `ssh -MN foo` and detach so that I can do `ssh foo` and boom, on foo no problem. And I can do `scp foo:file .` and no need to enter in either.

So then I tried following the walkthroughs here. First:

```
❯ git clone git+ssh://foo:/path/to/my/annex
Cloning into 'annex'...
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 28 (delta 4), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (28/28), done.
Resolving deltas: 100% (4/4), done.
```

Nice. Then I did:

```
❯ git annex init "my laptop"
init my laptop (scanning for unlocked files...)
Enter PIN:
Password:
ok
(recording state in git...)
```

Worked, but had to enter PIN and password. And then I `get` and:

```
❯ git annex get file1.nc4
get file1.nc4 (from origin...)
Enter PIN:
Password:
ok
(recording state in git...)
```

Same thing: worked, but had to do PIN/password. So, is there a way I can utilize an existing controlmaster "tunnel" and avoid the pin/password like I can with a simple `ssh foo`?