Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- svn co svn+ssh://10.106.191.164/home/svn/shproject
- $ svn --version | head -1
- svn, version 1.6.6 (r40053)
- $ cd /tmp
- $ svnadmin create myrepo
- $ read -p 'ssh myself@127.0.0.1? ' PASS
- ssh myself@127.0.0.1? [type _PASSWORD_, press ENTER]
- ## trying first with http://superuser.com/a/71479/39752
- # (specify in URL user:pass separated by colon)
- ## plain ssh - asks for password anyway:
- $ ssh myself:$PASS@127.0.0.1
- myself:_PASSWORD_@127.0.0.1's password: ^C
- # svn - with just username, as expected:
- $ svn co svn+ssh://myself@127.0.0.1/tmp/myrepo myrepo-wc
- myself@127.0.0.1's password: ^C
- svn: Network connection closed unexpectedly
- # svn - with password added to URL, asks for password anyway:
- $ svn co svn+ssh://myself:$PASS@127.0.0.1/tmp/myrepo myrepo-wc
- myself:_PASSWORD_@127.0.0.1's password: ^C
- svn: Network connection closed unexpectedly
- # trying then with http://superuser.com/a/380426/39752, http://superuser.com/a/327822/39752
- # (--non-interactive and --username/--password on command line)
- # svn - asks for password anyway:
- $ svn co svn+ssh://myself@127.0.0.1/tmp/myrepo --non-interactive --trust-server-cert --username myself --password $PASS --no-auth-cache
- myself@127.0.0.1's password: ^C
- svn: Network connection closed unexpectedly
- $ SSHPASS=$PASS SVN_SSH="sshpass -e ssh" svn co svn+ssh://myself@127.0.0.1/tmp/myrepo myrepo-wc
- Checked out revision 0.
- svn co svn+ssh://10.106.191.164/home/svn/shproject --non-interactive --trust-server-cert --username <username> --password <password> --no-auth-cache
- $ sudo apt-get install sshpass
- $ export SSHPASS=*yourpass*
- $ nano ~/.subversion/config
- ssh = $SVN_SSH sshpass -e ssh -q -o ControlMaster=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement