问题
I'm behind an authenticating proxy and need to access a remote SVN repo over https using git svn
.
The proxy is defined in my ~/.subversion/servers
file.
When I start with git svn fetch
, I get an error message:
RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental'
Ok. No problem. Let's write down the credentials to ~/.subversion/servers
→ everything works fine.
However, I'm a little bit uncomfortable having my domain credentials stored in a plain text file on my hard disk.
Are there other ways (especially interactive ones) to authenticate at my proxy when using git svn
over https?
Info: The PC where this should be accomplished is in a Windows domain and authentication is done with NTLM.
回答1:
if im not mistaken ntlmaps can also pull the login form windows itself as you have joind the domain, defenetly worth a try
anyway if that doused work you can make ntlmaps ask for a password on start time
Ntmlaps website
回答2:
You can protect ~/.subversion/servers
file by making sure you're the only one (and root) who can access it.
% chmod 600 ~/.subversion/servers
Another way is to use http_proxy environment variable. But you cannot use @ (and some other shell special chars) in your password.
% export http_proxy=http://user:pass@proxy:port
回答3:
http://wiki.apache.org/subversion/EncryptedPasswordStorage mentions alternatives to file storage of passwords on mac, pc, linux
来源:https://stackoverflow.com/questions/11446376/could-i-use-interactive-proxy-authentication-with-git-svn