mac - TortoiseSVN不保存身份驗證詳細信息
tortoisesvn mac (8)
如果您使用svn+ssh://
來訪問您的存儲庫,則svn根本不參與身份驗證,因此它無法保存身份驗證。 在這種情況下,您必須使用像pageant
這樣的SSH工具來存儲您的身份驗證數據。
即使我檢查了保存身份驗證複選框,並且每次訪問時都要求我輸入用戶名和密碼,TortoiseSVN也不會保存我的身份驗證詳細信息。
我怎樣才能解決這個問題?
如果您有以編程方式訪問Subversion的應用程序,例如通過SharpSVN或SVNKit,您的本地身份驗證緩存可能會被修改。
有一個簡單的解決方法 - 取消註釋Subversion的本地配置文件中的以下行
store-auth-creds = no
該文件通常存儲在“Application Data”目錄中。 (默認情況下,這是一個隱藏目錄 - 取消隱藏文件夾選項中的隱藏文件夾)。 在XP中,根據您的安裝,此目錄通常位於
C:\ Documents and Settings \ username \ Application Data \ Subversion
如果此配置文件在您的TortoiseSVN版本中不可用,則必須在“服務器”文件(在同一目錄中)中配置與基於組的身份驗證設置相同的設置。 自我的構建以來,配置文件的一部分已被棄用。 我的小組正在使用TortoiseSVN 1.6.0,Build 15855。
我有同樣的問題,我只是刪除了這個文件夾:
%APPDATA%\subversion\auth\
我下次登錄時重新創建並正確保存了我的密碼。
我有完全相同的問題......
必須將以下內容添加到我的%APPDATA%\subversion\servers
store-passwords = yes
(我還添加了store-auth-creds = yes store-plaintext-passwords = yes for good measure)
考慮TortoiseSVN保存認證信息:
# WindowsXp
"%APPDATA%"\subversion\auth
# or, for Windows7
"%APPDATA%"\Roaming\Subversion\auth
(請參閱TortoiseSVN在Windows 7中保存密碼緩存文件的位置? )
您可以檢查這些目錄中是否有任何正確的問題(嘗試在其中創建文件)。
也許另一個進程阻止訪問正確的身份驗證文件:嘗試重新啟動,並查看問題是否仍然存在。
轉到Tortoise設置>已保存的數據>驗證數據
並清楚你想要的任何東西。
這對我有用:在TortoiseSVN>設置>保存的數據中,單擊身份驗證數據附近的清除按鈕。
這就是我使用ssh將TortoiseSVN
連接到local Linux Server
而不登錄的方法:
1.設置(不確定是否需要此部分)
1.1。 打開TortoiseSVN settings
(右鍵單擊文件,tortoiseSVN>設置)
1.2。 在settings
,選擇“ Network
1.3。 在SSH, SSH client
,輸入: "C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe"
1.4。 單擊OK
。
1.5。 安裝膩子
2.生成密鑰
2.1。 運行“C:\Program Files (x86)\PuTTY\puttygen.exe”
2.2。 選擇ssh-2 rsa
2.3。 單擊Generate
(在窗口中移動光標以生成密鑰)
2.4。 移動光標直到完成(完成條應完全填滿)
2.5。 添加密鑰註釋(描述或用戶名)
2.6。 選擇Save public key
2.7。 將其保存到您創建的文件中(例如:Documents> ssh> description-public-key)
2.8。 選擇Save private key
2.9。 將其保存到您創建的文件中(例如:Documents> ssh> description-private-key)
2.10。 從窗口中選擇並copy the key
2.11。 將其保存到您創建的文件中(例如:Documents> ssh> description-authorized-key.txt
)
3.設置服務器端
3.1。 Putty到服務器並log in as the user
3.2。 在主目錄中,轉到或生成.ssh( ~/.ssh
)
3.3。 打開/ make authorized_keys( ~/.ssh/authorized_keys
)
3.4。 Copy the text
description-authorized-key.txt
保存的putty gen窗口中Copy the text
3.5。 Paste the text
到authorized_keys
文件中
3.6。 保存並退出
3.7。 chmod 600 authorized_keys
3.9。 確保subversion server is running
(要檢查: ps -e | grep svnserve
,要啟動: svnserve -d
)
3.8。 結束膩子會議
4.設置客戶端
4.1。 在客戶端/ Windows / TortoiseSVN端Open putty
4.2。 轉到Connection
> SSH
> Auth
4.3。 在Private key file for authentication
, enter the full path
description-private-key文件enter the full path
(例如: C:\Users\<user name>\Documents\ssh\description-private-key.ppk
)
4.4。 轉到Session
4.5。 在“ Saved Sessions
,選擇“ Default Settings
4.6。 選擇默認設置後,選擇save
4.7。 可能需要禁用防火牆或提供例外
4.8。 轉到目錄進行SVN簽出(右鍵單擊> SVN Checkout...
)
4.9。 在URL of repository
的URL of repository
,使用svn+ssh://[email protected]
(例如: svn+ssh://[email protected]/path/to/repo
)
參考文獻:
http://www.tecmint.com/ssh-passwordless-login-with-putty/
https://kb.wisc.edu/education/page.php?id=45394
https://kb.wisc.edu/education/page.php?id=45394
https://tortoisesvn.net/ssh_howto.html
https://.com/a/2356647/5582694