Sunday, January 23, 2011

[Rails] Re: Capistrano Deploy with SVN over SSH - Network connection closed unexpectedly

OK. Here's how I fixed this (on Mac OS X, but fix should work on any
client)

This particular issue arises when you are using a non-standard port
(let's say 12001 for sake of example) for your SSH server.

Apparently the SVN client experiences syntax errors when given a port
address on a command line like this one:

svn list
svn+ssh://username@domainname.com:12001/home/username/svn/myproject

So, to fix this, you need to create a client-side config file for SSH
like this:

cd ~
cd .ssh
vi config (create a config file like the one that follows)
:w
:q

Config file located in ~/.ssh/config:

Host domain.com
User username
Port 12001

Then, issue your svn+ssh command WITHOUT the port like this:

svn list svn+ssh://username@domain.com/home/username/svn/myproject

That's it!

Hope that helps.
Rick

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate