This is how I used ssh to connect TortoiseSVN to a local Linux Server without logging in:
1. Setup (not sure if this section is needed)
1.1. Open TortoiseSVN settings (right-click the file, tortoiseSVN> Settings)
1,2. In settings select Network
1.3. In the SSH SSH client section, type: "C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe"
1.4. Click OK .
1,5. Install putty
2. Creating keys
2.1. Run "C:\Program Files (x86)\PuTTY\puttygen.exe"
2.2. Choose ssh-2 rsa
2.3. Click Generate (move the cursor in the window to generate the key)
2.4. Move the cursor until it is complete (the completion panel should be completely filled)
2.5. Add key comment (description or username)
2.6. Choose Save public key
2.7. Save it to the file you are creating (example: Documents> ssh> description-public-key)
2.8. Choose Save private key
2.9. Save it to the file you are creating (example: Documents> ssh> description-private-key)
2.10. Select and copy the key from the window
2.11. Save it to the file you are creating (example: Documents> ssh> description-authorized-key.txt )
3. Configure the server side
3.1. Putty on the server and log in as the user
3.2. In the home directory, navigate or create .ssh ( ~/.ssh )
3.3. Open / do authorized_keys ( ~/.ssh/authorized_keys )
3.4. Copy the text from putty gen window that was saved in description-authorized-key.txt
3,5. Paste the text in authorized_keys file
3.6. Save and exit
3.7. chmod 600 authorized_keys
3.9. Make sure subversion server is running (To check: ps -e | grep svnserve , run: svnserve -d )
3.8. putty completion
4. Configure the client side
4.1. Open putty on the client side / Windows / TortoiseSVN
4.2. Go to Connection > SSH > Auth
4.3. In the Private key file for authentication , enter the full path in the description-private-key file (example: C:\Users\<user name>\Documents\ssh\description-private-key.ppk )
4.4. Go to Session
4,5. In the Saved Sessions section, select Default Settings
4.6. With the default settings selected, select save
4.7 Firewalls may need to disable or receive exceptions
4.8. Go to the directory to set the SVN check (right click> SVN Checkout... )
4.9. In the URL of repository use svn+ssh://username@... (example: svn+ssh://jdoe@172.217.0.4/path/to/repo )
Literature:
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
stack overflow