How to checkout code from deep server
1. Make tunnel to deep server
ssh -L 4444:deepserver.dyndns.org:2222 10.65.1.75 -N
2. Add tunnel svn config file
open ~/.subversion/config and add
sshtunnel = ssh -qp 4444 under tunnels
3. Checkout code
svn co svn+sshtunnel://localhost/srv/svn/repositories/TradingSystem
http://tomorrowisfriday.wordpress.com/2007/11/28/tunneling-subversion-for-the-svnssh-protocol/
Tortoise SVN
ReplyDeleteIf you are using "svn+ssh" and ssh port is not the default,
Go to Setting->Network and type
C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -P 2222
in
SSH client text box
To checkout the code,
svn+ssh://deepserver.dyndns.org/srv/svn/repositories/TradingSystem
If you have direct access to server and ssh port is different to standard port (22)
ReplyDeleteThen add "sshtunnel = ssh -p 2222" to ~/.subversion/config
and then to check out.
svn co svn+sshtunnel://deepserver.dyndns.org/srv/svn/repositories/TradingSystem
To relocate the repository address in Linux
ReplyDeletesvn switch --relocate http://server/old-path http://server/new-path