Natural Order Development

Copyright © 2008 by Leeland Artra
You are not logged in.
Login
Register



A Django site.

SSH Key Authentication

TechNotes / SSHAuthentication

Back to Snip <-- Previous Change

Diff Summary
Title SSH Key Authentication SSH Key Authentication
Date 2008-06-18 00:16:37 2008-06-18 00:18:45
Editor Leeland Leeland
Tags

2008-06-18 00:16:37 by Leeland
2008-06-18 00:18:45 by Leeland
4949
50You should now be able to log in to silenceisdefea50You should now be able to log in to silenceisdefea
>t.org using SSH Key Authentication.>t.org using SSH Key Authentication.
5151
52These instructions written by silenceisdefeat user52These instructions written by silenceisdefeat user
> samble. Holler on IRC if you use this guide.> samble. Holler on IRC if you use this guide.
5353
t54Retrieved from "http://silenceisdefeat.org/wiki/int54Retrieved from "http://silenceisdefeat.org/wiki/in
>dex.php/SSH_Key_Authentication">dex.php/SSH_Key_Authentication"
55
56
57From: Alexandre Quesnel <alexandre.quesnel@mail.mc
 >gill.ca>
58Date: Sat, 6 Aug 2005 03:45:00 -0400
59Content-Type: text/plain;
60        charset="us-ascii"
61Subject: subclipse with svn+ssh solution
62
63
64I'm using subclipse 0.9.32 on windows and I was ha
 >ving lots of trouble
65trying to get svn+ssh to work. After too much wast
 >ed time and giving up
66several times I finally found the solution and I t
 >hough that it would be
67well worth my while to post it here.
68
69I got the solution from Tim on the subversion mail
 >ing list 
70http://subversion.tigris.org/servlets/ReadMsg?list
 >=users&msgNo=13453 
71but I'll repeat it.
72
73First of all the problem is characterised by getti
 >ng the following message
74in the svn console:
75
76    The system cannot find the file specified.  
77svn: Can't create tunnel: The system cannot find t
 >he file specified.
78
79The solution to this is to tell svn where it can f
 >ind the ssh executable. To
80do this you need to add the following line to the 
 >svn config file. On
81windows the file can be found at:
82
83C:\Documents and Settings\[user_name]\Application 
 >Data\Subversion\config
84
85In this file there are sections one of which is [t
 >unnels] . Make sure this
86section head is uncommented (there is no # at the 
 >beginning of the line)
87After the section head look for a like that starts
 > with 'ssh = ' if you
88don't find that line then add the following, if yo
 >u do find it then modify
89it to the following:
90
91ssh = [path_to_ssh_client]
92
93for example I use:
94
95ssh = D:/TortoiseSVN/bin/TortoisePlink.exe
96
97I find the tortisesvn version of plink better than
 > the original version of
98plink because it doesn't pop up an annoying cmd wi
 >ndow every time you use
99svn. That's it, it should work now. Next you will 
 >want to set up an ssh key
100with the server so that you don't need to type in 
 >your password an
101innumerable number of times. Check out:
102
103http://silenceisdefeat.org/wiki/index.php/SSH_Key_
 >Authentication
104
105for a pretty good howto. The steps are pretty simp
 >le: generate the keys,
106post the public key on the server, connect. Now yo
 >u will need to fix up the
107Subversion\config file to go along with the change
 >s. Modify the line that
108was added before to be:
109
110ssh = [path_to_ssh_client] -2 -i [path_to_private_
 >key_file]
111
112for example I use:
113
114ssh = D:/TortoiseSVN/bin/TortoisePlink.exe -2 -i
115D:/TortoiseSVN/bin/ssh2-DSA-1024.ppk
116
117The -2 is because I need to force the use of ssh v
 >ersion 2 from generating a
118DSA key. I also don't put a passphrase on my key b
 >ut that's because I feel
119that my workstation is fairly secure. Now subclips
 >e should work with svn+ssh
120and have key auth to the server.
121
122Hope you found this helpful.
123
124Alex


Powered by Sphene Community Tools