Reputation: 4358
Our SVN server allows ssh connections only. How can I configure IntelliJ on Windows to connect to SVN server using svn+ssh?
Upvotes: 3
Views: 5456
Reputation: 4358
In order to connect to SVN using ssh on a Windows machine, you will need to
Here are the details of these steps.
You can use PUTTYGEN to generate the private key.
Then save the key in the .ssh
folder in the user home directory.
If you have Windows 10, you can use Bash on Ubuntu on Windows to generate and load your private keys.
ssh-keygen -t rsa
This will generate the file ~/.ssh/id_rsa
Then load the key to the server
ssh-copy-id [email protected]
The final step is to move the generated file from the Ubuntu subsystem path to your home directory in windows.
cp ~/.ssh/id_rsa /mnt/c/Users/amr/.ssh/
You still need to convert the key from OpenSSH
to PPK
format using the PUTTYGEN tool. From the tool load the file and then save the private key again in the PPK format.
Create a new session in PuTTY for login into the SVN server and change the setting of SSH/Auth to point to the private key file
Download and install Tortoise SVN. It has a command line tool named TortoisePlink
which is based on puTTY. We will use plink
as the SSH tunnel for SVN.
Go to File/Settings/Version Control/Subversion then select SSH settings tab.
Select Subversion config
make sure SSH tunnel is set to $SVN_SSH ssh -q
then add the path to TortoisPlink as in the picture. Make sure to skip backslashes.
Then, you are good to go.
Upvotes: 5