Advertisement
Guest User

Untitled

a guest
Mar 12th, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. svn co svn+ssh://10.106.191.164/home/svn/shproject
  2.  
  3. $ svn --version | head -1
  4. svn, version 1.6.6 (r40053)
  5.  
  6. $ cd /tmp
  7. $ svnadmin create myrepo
  8. $ read -p 'ssh myself@127.0.0.1? ' PASS
  9. ssh myself@127.0.0.1? [type _PASSWORD_, press ENTER]
  10.  
  11. ## trying first with http://superuser.com/a/71479/39752
  12. # (specify in URL user:pass separated by colon)
  13.  
  14. ## plain ssh - asks for password anyway:
  15.  
  16. $ ssh myself:$PASS@127.0.0.1
  17. myself:_PASSWORD_@127.0.0.1's password: ^C
  18.  
  19. # svn - with just username, as expected:
  20.  
  21. $ svn co svn+ssh://myself@127.0.0.1/tmp/myrepo myrepo-wc
  22. myself@127.0.0.1's password: ^C
  23. svn: Network connection closed unexpectedly
  24.  
  25. # svn - with password added to URL, asks for password anyway:
  26.  
  27. $ svn co svn+ssh://myself:$PASS@127.0.0.1/tmp/myrepo myrepo-wc
  28. myself:_PASSWORD_@127.0.0.1's password: ^C
  29. svn: Network connection closed unexpectedly
  30.  
  31. # trying then with http://superuser.com/a/380426/39752, http://superuser.com/a/327822/39752
  32. # (--non-interactive and --username/--password on command line)
  33.  
  34. # svn - asks for password anyway:
  35.  
  36. $ svn co svn+ssh://myself@127.0.0.1/tmp/myrepo --non-interactive --trust-server-cert --username myself --password $PASS --no-auth-cache
  37. myself@127.0.0.1's password: ^C
  38. svn: Network connection closed unexpectedly
  39.  
  40. $ SSHPASS=$PASS SVN_SSH="sshpass -e ssh" svn co svn+ssh://myself@127.0.0.1/tmp/myrepo myrepo-wc
  41. Checked out revision 0.
  42.  
  43. svn co svn+ssh://10.106.191.164/home/svn/shproject --non-interactive --trust-server-cert --username <username> --password <password> --no-auth-cache
  44.  
  45. $ sudo apt-get install sshpass
  46.  
  47. $ export SSHPASS=*yourpass*
  48.  
  49. $ nano ~/.subversion/config
  50.  
  51. ssh = $SVN_SSH sshpass -e ssh -q -o ControlMaster=no
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement