-
Notifications
You must be signed in to change notification settings - Fork 0
/
000155.html
295 lines (216 loc) · 11 KB
/
000155.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Martin Woodward: HowTo: Configure SVN+SSH with Subclipse on Windows</title>
<link rel="stylesheet" href="http://www.woodwardweb.com/styles-site.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://feeds.feedburner.com/MartinWoodward" />
<link rel="start" href="http://www.woodwardweb.com/" title="Martin Woodward" />
<link rel="prev" href="http://www.woodwardweb.com/personal/000154.html" title="Google Analysis" />
<script type="text/javascript" language="javascript">
<!--
function OpenTrackback (c) {
window.open(c,
'trackback',
'width=480,height=480,scrollbars=yes,status=yes');
}
var HOST = 'www.woodwardweb.com';
// Copyright (c) 1996-1997 Athenia Associates.
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
function setCookie (name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
document.cookie = curCookie;
}
function getCookie (name) {
var prefix = name + '=';
var c = document.cookie;
var nullstring = '';
var cookieStartIndex = c.indexOf(prefix);
if (cookieStartIndex == -1)
return nullstring;
var cookieEndIndex = c.indexOf(";", cookieStartIndex + prefix.length);
if (cookieEndIndex == -1)
cookieEndIndex = c.length;
return unescape(c.substring(cookieStartIndex + prefix.length, cookieEndIndex));
}
function deleteCookie (name, path, domain) {
if (getCookie(name))
document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
function fixDate (date) {
var base = new Date(0);
var skew = base.getTime();
if (skew > 0)
date.setTime(date.getTime() - skew);
}
function rememberMe (f) {
var now = new Date();
fixDate(now);
now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000);
setCookie('mtcmtauth', f.author.value, now, '', HOST, '');
//setCookie('mtcmtmail', f.email.value, now, '', HOST, '');
//setCookie('mtcmthome', f.url.value, now, '', HOST, '');
}
function forgetMe (f) {
deleteCookie('mtcmtmail', '', HOST);
deleteCookie('mtcmthome', '', HOST);
deleteCookie('mtcmtauth', '', HOST);
//f.email.value = '';
f.author.value = '';
//f.url.value = '';
}
//-->
</script>
<!--
<rdf:RDF xmlns="http://web.resource.org/cc/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<Work rdf:about="http://www.woodwardweb.com//000155.html">
<dc:title>HowTo: Configure SVN+SSH with Subclipse on Windows</dc:title>
<dc:description>Problem: Use ssh tunnelling to access a Subversion repository using SSH tunneling (i.e. with a subversion repository url of svn+ssh://myservername/myrepo) using the Subclipse subversion integration with Eclipse. I tried various things and used each of the three interfaces for configuring...</dc:description>
<dc:creator>Martin</dc:creator>
<dc:date>2005-11-27T00:09:34+00:00</dc:date>
<license rdf:resource="http://creativecommons.org/licenses/by/1.0/" />
</Work>
<License rdf:about="http://creativecommons.org/licenses/by/1.0/">
<requires rdf:resource="http://web.resource.org/cc/Attribution" />
<requires rdf:resource="http://web.resource.org/cc/Notice" />
<permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<permits rdf:resource="http://web.resource.org/cc/Distribution" />
<permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
</License>
</rdf:RDF>
-->
<!-- Google tracker -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-71966-1";
urchinTracker();
</script>
</head>
<body>
<div id="banner">
<H1><SPAN CLASS="textVersion">Martin Woodward</SPAN></H1>
</div>
<div id="content">
<div class="blog">
<div id="menu">
<a href="http://www.woodwardweb.com/personal/000154.html">« Google Analysis</a> |
<a href="http://www.woodwardweb.com/">Martin Woodward</a>
</div>
</div>
<div class="blog">
<h2 class="date">November 27, 2005</h2>
<div class="blogbody">
<h3 class="title">HowTo: Configure SVN+SSH with Subclipse on Windows</h3>
<p><b>Problem:</b><br />
Use ssh tunnelling to access a Subversion repository using SSH tunneling (i.e. with a subversion repository url of svn+ssh://myservername/myrepo) using the Subclipse subversion integration with Eclipse. I tried various things and used each of the three interfaces for configuring Subclipse (Window, Preferences..., Team, SVN). </p>
<p>When I used JavaHL (JNI) I got the following error, "svn: Can't create tunnel: The system cannot find the file specified." SVN Command Line gave me a similar error. Finally the JavaSVN interface (1.0) just did not want to talk to authenticate with my server at all. Did various searched on Google and couldn't find an answer that worked, just lots of people with a similar problem. Anyway, the following works for me...</p>
<p><B>Solution:</B><br />
You need to create an environment variable called "SVN_SSH" that points to an executable file that accepts the same command line arguments as ssh on unix. I did this by doing the following:-<br />
<OL><LI>Set up ssh keys. Not going to cover that here as you can easily Google for that. You need to end up with your public key on the SVN server and your private key loaded into Paegent locally.</LI><br />
<LI>Download and installed the excellent <a href="http://tortoisesvn.sourceforge.net/">TortoiseSVN</a> client for Windows.</LI><br />
<LI>Set the following environment variable (by right-clicking on My Computer, Properties, Advanced, Environment Variables, New):-</p>
<p>Variable name: <code>SVN_SSH</code><br />
Variable value: <code>C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe</code></p>
<p>(The "\\" is very important, otherwise it won't work. Equally, you cannot use the plink.exe that comes with putty as that fires up a command shell window which is really annoying. The TortoisePlink.exe is a windows implementation of plink that doesn't bring up any UI)<br />
</LI><br />
<LI>Configure the Subclipse plugin to use JavaHL (JNI)</LI><br />
<LI>Restart Eclipse</LI><br />
<LI>Do a little victory jig (optional)</LI><br />
</OL><br />
</p>
<a name="more"></a>
<span class="posted">Posted by Martin at November 27, 2005 12:09 AM
<br /></span>
</div>
<div class="comments-head"><a name="comments"></a>Comments</div>
<div class="comments-head">Post a comment</div>
<div class="comments-body">
<!--$MTCommentScript$-->
<form method="post" action="http://www.woodwardweb.com/mt//mt-comments.cgi" name="comments_form" onsubmit="if (this.bakecookie[0].checked) rememberMe(this)">
<input type="hidden" name="static" value="1" />
<input type="hidden" name="entry_id" value="155" />
<div style="width:180px; padding-right:15px; margin-right:15px; float:left; text-align:left; border-right:1px dotted #bbb;">
<label for="author">Name:</label><br />
<input tabindex="1" id="author" name="author" /><br /><br />
<!-- <label for="email">Email Address:</label><br />
<input tabindex="2" id="email" name="email" /><br /><br />
<label for="url">URL:</label><br />
<input tabindex="3" id="url" name="url" /><br /><br />
-->
</div>
Remember personal info?<br />
<input type="radio" id="bakecookie" name="bakecookie" /><label for="bakecookie">Yes</label><input type="radio" id="forget" name="bakecookie" onclick="forgetMe(this.form)" value="Forget Info" style="margin-left: 15px;" /><label for="forget">No</label><br style="clear: both;" />
Anti-spam Code: 1HjmKg
(please enter below)<br/>
<label for="code">Anti-spam Code:</label><br />
<input tabindex="3" id="code" name="code" /><br /><br />
<label for="text">Comments:</label><br />
<textarea tabindex="4" id="text" name="text" rows="10" cols="50"></textarea><br /><br />
<input style="font-weight: bold;" type="submit" name="post" value=" Post " /><br /><br />
</form>
<script type="text/javascript" language="javascript">
<!--
//document.comments_form.email.value = getCookie("mtcmtmail");
document.comments_form.author.value = getCookie("mtcmtauth");
//document.comments_form.url.value = getCookie("mtcmthome");
if (getCookie("mtcmtauth")) {
document.comments_form.bakecookie[0].checked = true;
} else {
document.comments_form.bakecookie[1].checked = true;
}
//-->
</script>
</div>
</div>
</div>
<div id="links">
<div class="sidetitle">
Sections
</div>
<div class="side">
<a href="http://www.woodwardweb.com/" TITLE="Martin Woodward">Home</a><br />
<a href="http://www.woodwardweb.com/Books/index.html">Books (8)</a><br />
<a href="http://www.woodwardweb.com/Buddies/index.html">Buddies (7)</a><br />
<a href="http://www.woodwardweb.com/Dotnet/index.html">Dotnet (18)</a><br />
<a href="http://www.woodwardweb.com/Films/index.html">Films (2)</a><br />
<a href="http://www.woodwardweb.com/Gadgets/index.html">Gadgets (9)</a><br />
<a href="http://www.woodwardweb.com/Java/index.html">Java (6)</a><br />
<a href="http://www.woodwardweb.com/Personal/index.html">Personal (26)</a><br />
<a href="http://www.woodwardweb.com/Photos/index.html">Photos (2)</a><br />
<a href="http://www.woodwardweb.com/Podcasting/index.html">Podcasting (6)</a><br />
<a href="http://www.woodwardweb.com/Programming/index.html">Programming (18)</a><br />
<a href="http://www.woodwardweb.com/Sandbox/index.html">Sandbox (2)</a><br />
<a href="http://www.woodwardweb.com/Software/index.html">Software (6)</a><br />
<a href="http://www.woodwardweb.com/Technology/index.html">Technology (21)</a><br />
<a href="http://www.woodwardweb.com/Vsts/index.html">Vsts (13)</a><br />
<a href="http://www.woodwardweb.com/Web Design/index.html">Web Design (2)</a><br />
<a href="http://www.woodwardweb.com/Web Sites/index.html">Web Sites (18)</a><br />
<a href="http://www.woodwardweb.com/Work/index.html">Work (5)</a><br />
</div>
<div class="sidetitle">
Search
</div>
<div class="side">
<form method="get" action="http://www.woodwardweb.com/mt/mt-search.cgi">
<input type="hidden" name="IncludeBlogs" value="2" />
<label for="search" accesskey="4">Search this site:</label><br />
<input id="search" name="search" size="20" /><br />
<input type="submit" value="Search" />
</form>
</div>
<div class="syndicate">
<a href="http://feeds.feedburner.com/MartinWoodward">Syndicate this site (XML)</a>
</div>
<div class="syndicate">
<a href="http://creativecommons.org/licenses/by/1.0/"><img alt="Creative Commons License" border="0" src="http://creativecommons.org/images/public/somerights" /></a><br />
This weblog is licensed under a <a href="http://creativecommons.org/licenses/by/1.0/">Creative Commons License</a>.
</div>
</div>
<br clear="all" />
</body>
</html>