diff options
author | https://www.google.com/accounts/o8/id?id=AItOawnZEanlyzay_QlEAL0CWpyZcRTyN7vay8U <Carlo@web> | 2012-11-30 14:49:02 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-11-30 14:49:02 +0000 |
commit | 7449295e5012ec2de58706bfcc58996495633fb8 (patch) | |
tree | c883542c862fdb3d4a3a66561b03a188feac0c40 /doc/tips | |
parent | 5e39f78415f303b03698a38e5bd8b44e5a36adb9 (diff) |
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/Decentralized_repository_behind_a_Firewall.mdwn | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn index e720522a4..c2a114799 100644 --- a/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn +++ b/doc/tips/Decentralized_repository_behind_a_Firewall.mdwn @@ -2,24 +2,26 @@ If you're anything like me, you have a copy of your annex on a computer running ssh myhome.no-ip.org -This is totally great! Except, there is no way for your home computer to pull your changes, because there is no onthego.no-ip.org. You can get clunky and use a bare git repository and git push, but there is a better way. +This is totally great! Except, there is no way for your home computer to pull your changes, because there is no *on-the-go.no-ip.org*. You can get clunky and use a *bare git repository and git push*, but there is a better way. -First, install openssh-server on your on-the-go computer +First, install *openssh-server* on your *on-the-go* computer sudo apt-get install openssh-server -Then, log into your home computer, with *port forwarding*: +Then, log into your *home* computer, with *port forwarding*: ssh me@myhome.no-ip.org L 2201:localhost:22 -Your home computer can now ssh into your on-the-go computer, as long as you keep the above shell running. Presto, you can use the same shell to set up your remote: +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 localhost -p 2201 cd ~/annex git annex remote add on-the-go ssh://localhost:2201/home/myuser/annex -And run normal annex operations: +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 @@ -50,3 +52,4 @@ In any case, the setup is much, much, much more secure than Dropbox. With Dropbo ----- ¹ My always-on computer at home is a raspberry pi with a 32GB USB stick. Best self-hosted dropbox you could imagine. +² You can just forward the port, but not open a shell, by adding the -N command. I rarely use this. |