svn no need input password every time

This method is for using protocol SVN + SSH to access Subversion.

Install sshpass

  • sudo apt-get install sshpass

Set the temporary environment variable, add following content(replace yourpassword with real password) to ~/.bashrc

  • export SSHPASS=yourpassword

Edit the svn config file,  add following line to ~/.subversion/config if ssh line commented. 

  • ssh = $SVN_SSH sshpass -e ssh -q -o ControlMaster=no

猜你喜欢

转载自blog.csdn.net/grantzhu0/article/details/81101094