首次使用SVN连接项目仓库遇E170013错误求助
Hey there! Let's break down what's going on here since you're new to SVN and hitting that frustrating connection error. First off, a quick key difference from Git: SVN doesn't use RSA public keys for HTTPS connections—that's a Git/SSH-specific workflow! So you don't need to hunt for that option in Redmine. Let's fix the checkout issue step by step:
1. Double-Check Your Full SVN Repository URL
The URL https://myProject is almost certainly too vague. Redmine-hosted SVN repos have a specific, full path, usually something like https://your-redmine-server-domain/svn/your-project-slug.
Head to your Redmine project page, look for the Repository tab, and you'll find the exact checkout URL listed there. Make sure you copy that complete URL instead of a shortened version.
2. Resolve SSL Certificate Trust Issues
Since you're using HTTPS, your terminal might block the connection because it doesn't trust the server's SSL certificate (browsers use a different trust store, which is why you can access it there).
Try running this command first to trigger the certificate prompt:
svn info https://your-full-svn-repo-url
When prompted, type p to permanently trust the certificate, or t for temporary trust. After that, re-run your checkout command:
svn co https://your-full-svn-repo-url
3. Fix Stored/Incorrect Credentials
If you accidentally entered the wrong username/password earlier, SVN might have cached those bad credentials. Here's how to clear them:
- Linux/macOS: Delete the cached auth files with:
rm -rf ~/.subversion/auth - Windows: Open Command Prompt, run:
svn cleanup --remove-unversioned rmdir /s %APPDATA%\Subversion\auth
After clearing, re-run the checkout command—SVN will prompt you to enter your correct username and password again.
4. Check for Proxy Mismatches
If your browser uses a proxy but your terminal doesn't, that could cause the connection failure.
First, check if your terminal has proxy settings enabled:
echo $http_proxy echo $https_proxy
If these are empty but your browser uses a proxy, configure SVN to use it:
- Open the SVN servers config file:
- Linux/macOS:
~/.subversion/servers - Windows:
%APPDATA%\Subversion\servers
- Linux/macOS:
- Find the
[global]section, then add:http-proxy-host = your-proxy-server-address http-proxy-port = your-proxy-port-number
If your proxy requires authentication, add these lines too:
http-proxy-username = your-proxy-username http-proxy-password = your-proxy-password
Quick SVN vs Git Reminder for New Users
Since you're coming from Git, keep these differences in mind:
- SVN is centralized—you don't initialize a local repo first; you directly checkout the remote repo.
- HTTPS SVN uses username/password + SSL certificate validation, not SSH keys (unless your server is set up for SVN over SSH, which isn't the case here).
内容的提问来源于stack exchange,提问作者Fabrice Froehly

