diff options
Diffstat (limited to 'doc/tips/Decentralized_repository_behind_a_Firewall.mdwn')
-rw-r--r-- | doc/tips/Decentralized_repository_behind_a_Firewall.mdwn | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn index 5dbc8d71a..9e347c73f 100644 --- a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn +++ b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn @@ -10,22 +10,22 @@ First, install *openssh-server* on your *on-the-go* computer Then, log into your *home* computer, with *port forwarding*: - ssh me@myhome.no-ip.org L 2201:localhost:22 + ssh me@myhome.no-ip.org -R 2201:localhost:22 Your *home* computer can now ssh into your *on-the-go* computer, as long as you keep the above shell running. You can now add your *on-the-go* computer as a remote on your *home* computer. Use the port forwarding shell you just connected with the command above, if you like. ssh-keygen -t rsa - ssh-copy-id me@localhost -p 2201 + ssh-copy-id "me@localhost -p 2201" cd ~/annex - git annex remote add on-the-go ssh://me@localhost:2201/home/myuser/annex + git remote add on-the-go ssh://me@localhost:2201/home/myuser/annex Now you can run normal annex operations, as long as the port forwarding shell is runningĀ³. git annex sync git annex get on-the-go some/big/file - git annex status + git annex info You can add more computers by repeating with a different port, e.g. 2202 or 2203 (or any other). |