svn+ssh on mingw32?

2006-02-07 Thread Richard Frith-Macdonald
Has anyone managed to get svn+ssh working on windowing in the ming32  
environment yet?


After installing svn-win32-1.3.0 to use from the msys command line I  
get 'svn: Connection closed unexpectedly'


My ssh setup works fine for me normally (I was using it to access the  
CVS repository without trouble).


I have tried adding an ssh key without password protection so that I  
know that svn won't be confused by ssh wanting a password.

I have told ssh what username to use when contacting gna.org.

My ssh config file says -

Protocol 2
Host svn.gna.org
User rfm
IdentityFile ~/.ssh/insecure


I have also tried using the TortiseSVN package, following the clear  
instructions at http://www.logemann.org/archives/99.html, but  
that has a similar problem 'Error * Connection closed unexp...'  even  
though it's using the Putty/Plink/Pageant software to do the ssh bit.



Any ideas?  It would be a pity if the move to subversion means we  
stop doing windows development.



___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Sheldon Gill

Richard Frith-Macdonald wrote:
Has anyone managed to get svn+ssh working on windowing in the ming32 
environment yet?


Well, I have. At least, I've fetched the code without issue over ssh using my 
key.

Actually, without issue isn't strictly true:

svn co svn+step://svn.gna.org/svn/gnustep/devmodules/core

returned an error after checking out the first level: couldn't find external 
gui.

That's not a windows problem, though.

After installing svn-win32-1.3.0 to use from the msys command line I get 
'svn: Connection closed unexpectedly'

>
My ssh setup works fine for me normally (I was using it to access the 
CVS repository without trouble).

>
> I have tried adding an ssh key without password protection so that I
> know that svn won't be confused by ssh wanting a password.
> I have told ssh what username to use when contacting gna.org.
>
> My ssh config file says -
>
> Protocol 2
> Host svn.gna.org
> User rfm
> IdentityFile ~/.ssh/insecure
>

I'd suggest you check it. Specifically with the gna server. Like this:

ssh -l rfm svn.gna.org

(modify if you're using some other command/tool)
If you've got it set up right, it'll ask you for the passphrase to your key. Or 
if you're using an unprotected key, it'll go through ready for a command.


If this bit won't work, there's no point going further.

Any ideas?  It would be a pity if the move to subversion means we stop 
doing windows development.


It would seem to me that the problem is your ssh session isn't being 
established with the right credentials or that the key isn't registered. The 
"Connection closed unexpectedly" message is the tunnel being closed prematurely.


Oh... did you tell gna.org about your new key?


Regards,
Sheldon


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Richard Frith-Macdonald


On 8 Feb 2006, at 09:53, Sheldon Gill wrote:


Richard Frith-Macdonald wrote:
Has anyone managed to get svn+ssh working on windowing in the  
ming32 environment yet?


Well, I have. At least, I've fetched the code without issue over  
ssh using my key.


Good to hear that it *can* work.

After installing svn-win32-1.3.0 to use from the msys command line  
I get 'svn: Connection closed unexpectedly'

>
My ssh setup works fine for me normally (I was using it to access  
the CVS repository without trouble).

>
> I have tried adding an ssh key without password protection so that I
> know that svn won't be confused by ssh wanting a password.
> I have told ssh what username to use when contacting gna.org.
>
> My ssh config file says -
>
> Protocol 2
> Host svn.gna.org
> User rfm
> IdentityFile ~/.ssh/insecure
>

I'd suggest you check it. Specifically with the gna server. Like this:

ssh -l rfm svn.gna.org


As I said ... the ssh connection works fine.
In more detail, it says -

  Error:

  You are not allowed to run the command you asked.

  Only svn over ssh is accepted.  Please double-check the
  command line you typed.

and so on ... which proves that the ssh connection was established.

Any ideas?  It would be a pity if the move to subversion means we  
stop doing windows development.


It would seem to me that the problem is your ssh session isn't  
being established with the right credentials or that the key isn't  
registered. The "Connection closed unexpectedly" message is the  
tunnel being closed prematurely.


I expect so ... but the question is ... why?
My ssh connection works fine.
svn+ssh works fine on linux.
So the issue must be something to do with the subversion client ...  
my guess is it's not picking up the ssh configuration from ~/.ssh for  
some reason, but I haven't figured out how/why that can be the case.   
I also don't see how a problem with the command-line client could  
also effect the TortoiseSVN stuff ... which I configured completely  
independently using Putty stuff rather than OpenSSH stuff.  That's  
two different ssh implementations being used and both giving the same  
error.




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Sheldon Gill

Richard Frith-Macdonald wrote:


I expect so ... but the question is ... why?
My ssh connection works fine.
svn+ssh works fine on linux.
So the issue must be something to do with the subversion client ... my guess is 
it's not picking up the ssh configuration from ~/.ssh for some reason, but I 
haven't figured out how/why that can be the case.  I also don't see how a 
problem with the command-line client could also effect the TortoiseSVN stuff 
... which I configured completely independently using Putty stuff rather than 
OpenSSH stuff.  That's two different ssh implementations being used and both 
giving the same error.


Maybe this will help:

export SVN_SSH=ssh -l rfm -i ~/.ssh/your_key

Have you checked that using plink gets you an authenticated connection?

Incidentally, are you running any firewall software on your machine?  I've come 
across some which rely on the process name for permissions. I've also come 
across virus-scanner/security tools which don't play too nicely. Suspect them 
as well.



Regards,
Sheldon


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Richard Frith-Macdonald


On 8 Feb 2006, at 10:45, Sheldon Gill wrote:


Richard Frith-Macdonald wrote:

I expect so ... but the question is ... why?
My ssh connection works fine.
svn+ssh works fine on linux.
So the issue must be something to do with the subversion  
client ... my guess is it's not picking up the ssh configuration  
from ~/.ssh for some reason, but I haven't figured out how/why  
that can be the case.  I also don't see how a problem with the  
command-line client could also effect the TortoiseSVN stuff ...  
which I configured completely independently using Putty stuff  
rather than OpenSSH stuff.  That's two different ssh  
implementations being used and both giving the same error.


Maybe this will help:

export SVN_SSH=ssh -l rfm -i ~/.ssh/your_key


Thanks ... but I've just now got it working, and I'm inclined to  
stick with what I've got.


I edited 'C:/Documents and Settings/richard/Application Data/ 
Subversion/config'  and added a line to explicitly specify the path  
to my mingw32/msys copy of ssh ...


'ssh = $SVN_SSH C:/msys/1.0/bin/ssh.exe'

I don't know what the built-in/default configuration was doing, but  
whatever it was, it didn't work on my machine.  Possibly something  
stupid like setting the PATH to some default value which contains  
neither my mingw/msys version of ssh nor its own inbuilt one?


Have you checked that using plink gets you an authenticated  
connection?


I think I did, but I can't swear to it ... it's a while since I tried  
the putty/plink/pageant route ... to tell the truth I'm happier with  
the familiar openssh stuff.


Incidentally, are you running any firewall software on your  
machine?  I've come across some which rely on the process name for  
permissions. I've also come across virus-scanner/security tools  
which don't play too nicely. Suspect them as well.


No .. I do my firewalling on a separate router.




___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Sheldon Gill

Richard Frith-Macdonald wrote:


On 8 Feb 2006, at 10:45, Sheldon Gill wrote:


Richard Frith-Macdonald wrote:

I expect so ... but the question is ... why?
My ssh connection works fine.
svn+ssh works fine on linux.
So the issue must be something to do with the subversion client ... 
my guess is it's not picking up the ssh configuration from ~/.ssh for 
some reason, but I haven't figured out how/why that can be the case.  
I also don't see how a problem with the command-line client could 
also effect the TortoiseSVN stuff ... which I configured completely 
independently using Putty stuff rather than OpenSSH stuff.  That's 
two different ssh implementations being used and both giving the same 
error.


Maybe this will help:

export SVN_SSH=ssh -l rfm -i ~/.ssh/your_key


Thanks ... but I've just now got it working, and I'm inclined to stick 
with what I've got.


I edited 'C:/Documents and Settings/richard/Application 
Data/Subversion/config'  and added a line to explicitly specify the path 
to my mingw32/msys copy of ssh ...


'ssh = $SVN_SSH C:/msys/1.0/bin/ssh.exe'


Actually, editing [tunnels] in subversion config was my next suggestion.

For what its worth, here's a summary for getting PuTTY going:

* download and install svn client
* download and install putty, plink, pageant...

  Make sure both are in your path somewhere. I like \Program Files\Bin\

* Generate a key using puttygen
  (It can also import existing keys from elsewhere...)
  Save it somewhere as 

* Tell GNA.org about the key and wait an hour
* Check ssh access

  plink -v -ssh -l  -i  svn.gna.org

* Edit Subversion configuration %USERPROFILE%\Application Data\Subversion\config

  [tunnels]
  putty = plink -ssh -l 

* Launch pageant and add your key

* Check subversion access

  svn list svn+putty://svn.gna.org/svn/gnustep



Regards,
Sheldon


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Andrew Ruder
On Wed, Feb 08, 2006 at 07:15:20PM +0800, Sheldon Gill wrote:
> Richard Frith-Macdonald wrote:
> >
> >On 8 Feb 2006, at 10:45, Sheldon Gill wrote:
> >
> >>Richard Frith-Macdonald wrote:
> >>>I expect so ... but the question is ... why?
> >>>My ssh connection works fine.
> >>>svn+ssh works fine on linux.
> >>>So the issue must be something to do with the subversion client ... 
> >>>my guess is it's not picking up the ssh configuration from ~/.ssh for 
> >>>some reason, but I haven't figured out how/why that can be the case.  
> >>>I also don't see how a problem with the command-line client could 
> >>>also effect the TortoiseSVN stuff ... which I configured completely 
> >>>independently using Putty stuff rather than OpenSSH stuff.  That's 
> >>>two different ssh implementations being used and both giving the same 
> >>>error.
> >>
> >>Maybe this will help:
> >>
> >>export SVN_SSH=ssh -l rfm -i ~/.ssh/your_key
> >
> >Thanks ... but I've just now got it working, and I'm inclined to stick 
> >with what I've got.
> >
> >I edited 'C:/Documents and Settings/richard/Application 
> >Data/Subversion/config'  and added a line to explicitly specify the path 
> >to my mingw32/msys copy of ssh ...
> >
> >'ssh = $SVN_SSH C:/msys/1.0/bin/ssh.exe'
> 
> Actually, editing [tunnels] in subversion config was my next suggestion.
> 
> For what its worth, here's a summary for getting PuTTY going:
> 
> * download and install svn client
> * download and install putty, plink, pageant...
> 
>   Make sure both are in your path somewhere. I like \Program Files\Bin\
> 
> * Generate a key using puttygen
>   (It can also import existing keys from elsewhere...)
>   Save it somewhere as 
> 
> * Tell GNA.org about the key and wait an hour
> * Check ssh access
> 
>   plink -v -ssh -l  -i  svn.gna.org
> 
> * Edit Subversion configuration %USERPROFILE%\Application 
> Data\Subversion\config
> 
>   [tunnels]
>   putty = plink -ssh -l 
> 
> * Launch pageant and add your key
> 
> * Check subversion access
> 
>   svn list svn+putty://svn.gna.org/svn/gnustep

You'll probably want to figure out how to get it so you can checkout
with svn+ssh.  The /devmodules is configured such that it checks the
externals out with svn+ssh.  I got windows working and booted into this
morning, when I get home this evening, hopefully I am able to check
things out (no pun intended) ;)

- Andy

-- 
Andrew Ruder
http://www.aeruder.net


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev


Re: svn+ssh on mingw32?

2006-02-08 Thread Sheldon Gill

Andrew Ruder wrote:


  svn list svn+putty://svn.gna.org/svn/gnustep


You'll probably want to figure out how to get it so you can checkout
with svn+ssh.  The /devmodules is configured such that it checks the
externals out with svn+ssh.  I got windows working and booted into this
morning, when I get home this evening, hopefully I am able to check
things out (no pun intended) ;)


To make the above work with /devmodules externals property definitions you 
simply need to change the Subversion configuration file:


[tunnels]
ssh = $SVN_SSH plink -ssh -l 

The first tunnel definition I gave was because I've got multiple ssh methods 
available.



Regards,
Sheldon


___
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev