# NAME
-git-annex p2p - manage peer-to-peer connections
+git-annex p2p - configure peer-2-peer links between repositories
# SYNOPSIS
# DESCRIPTION
-When using git-annex with peer-to-peer communication, this manages
-connections between the peers.
-
-Currently, git-annex supports peer-to-peer communication over Tor.
+This command can be used to link git-annex repositories over peer-2-peer
+networks.
# OPTIONS
-* `--gen-address [name]`
-
- Generates one or more addresses, which allow whoever knows them to access
- your repository. The addresses are output on standard output, one per
- supported P2P network.
-
- You can re-run this command repeatedly to generate as many addresses
- as you like.
-
- The name is an optional parameter, the name of the person or device you
- intend to give this address to. Providig it makes it easier to use
- `--remove-address`
-
-* `--link-remote name address`
+* `--gen-address`
- Link the local repository to a remote repository. This sets up a git remote
- with the specified name. The address is one generated by `--gen-address`
- run on the remote repository.
+ Generates addresses that can be used to access this git-annex repository
+ over a P2P network. The address or addresses is output to stdout.
-* `--remove-address [address|name]`
+* `--link-remote remotename address`
- If you've given out an address to someone, and don't want to accept
- connections from them anymore, this can be used to remove it.
+ Sets up a git remote with the specified remotename that is accessed over
+ a P2P network. The address is one generated in the remote repository using
+ `git annex p2p --gen-address`
# SEE ALSO
For tor-annex remotes, the remotedaemon runs as a tor hidden service,
accepting connections from other nodes and serving up the contents of the
repository. This is only done if you first run `git annex enable-tor`.
+Use `git annex p2p` to configure access to tor-annex remotes.
# OPTIONS
[[git-annex-enable-tor]](1)
+[[git-annex-p2p]](1)
+
# AUTHOR
Joey Hess <id@joeyh.name>
git annex remotedaemon
git annex p2p --gen-address
-The p2p-auth command will output a long address, such as:
+The p2p command will output a long address, such as:
tor-annex::eeaytkuhaupbarfi.onion:4412:7f53c5b65b8957ef626fd461ceaae8056e3dbc459ae715e4
git annex sync --content peer1
-You can also generate an address for this new peer, by running
-`git annex p2p --gen`, and add that address to other peers using `git annex
+You can also generate an address for this new peer, by running `git annex
+p2p --gen-address`, and add that address to other peers using `git annex
p2p --link-remote`. It's often useful to link peers up in both directions,
so peer1 is a remote of peer2 and peer2 is a remote of peer1.