[Capistrano] problem with cat /etc/passwd do |ch, stream, data|

2009-01-15 Thread Gerhardus Geldenhuis
Hi I saw the following code on http://blog.innerewut.de/2007/9/28/capturing-output-in-capistrano and thought it was capistrano run cat /etc/passwd do |ch, stream, data| if stream == :err logger.debug capured output on STDERR: #{data} else # stream == :out logger.debug capured

[Capistrano] Capistrano::ConnectionError

2009-01-15 Thread Xazoola
Hi, I am getting a ConnectionError on Solaris. Works find on Linux. anyone know what causes this error? Capistrano::ConnectionError, connection failed for: IPADDRESS (Net::SSH::Exception: could not settle on encryption_client algorithm) --~--~-~--~~~---~--~~ To

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Lee Hambley
This might be ssh v1 vs. v2 issues, are you definately using SSH v2, with v2 keys? (i think it is a difference between DSA, and RSA keys)- Lee 2009/1/15 Xazoola col...@gmail.com Hi, I am getting a ConnectionError on Solaris. Works find on Linux. anyone know what causes this error?

[Capistrano] Re: problem with cat /etc/passwd do |ch, stream, data|

2009-01-15 Thread Jamis Buck
Make sure you aren't getting some fancy quotes from the copy/paste. Often, code copy/pasted from a blog post will include fancy quotes and mdashes instead of ascii quotes and hyphens, and ruby does not recognize those characters as valid in its syntax. - Jamis On 1/15/09 4:30 AM, Gerhardus

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Jamis Buck
This can also be caused if your SSH server is configured to allow only a small subset of cipher algorithms, and that subset does not overlap any of the algorithms that Net::SSH supports. Net::SSH supports the following ciphers: aes128-cbc 3des-cbc blowfish-cbc cast128-cbc aes192-cbc

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Xazoola
You have just nailed it. There was a SSH CBC vulnerability reported by US-CERT. http://www.kb.cert.org/vuls/id/958563 I'm not sure how the vulnerability is exploited. But to be safe, I disable all CBC related ciphers. After enabling all the default ciphers aes128-ctr,aes128-cbc,arcfour,

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Jamis Buck
I had heard of it, but I am not a crypto guru, and I have no idea how to make OpenSSL support those (which is what Net::SSH depends on). Perhaps someone more crypto-saavy than I will be able to pipe in and say oh, heck, you just need to do X and Y and you're all set. :) - Jamis On 1/15/09 10:02

[Capistrano] Re: Capistrano::ConnectionError

2009-01-15 Thread Xazoola
ok, and many thanks for your solution! On Jan 15, 5:03 pm, Jamis Buck ja...@37signals.com wrote: I had heard of it, but I am not a crypto guru, and I have no idea how to make OpenSSL support those (which is what Net::SSH depends on). Perhaps someone more crypto-saavy than I will be able to

[Capistrano] Re: Deploying from a specific path with a Git repo

2009-01-15 Thread Henry
Thanks for the reply. I understand the best practice of 1 repo == 1 project. But sometimes it just doesn't make sense. For example, I have another big rails app that is not ready for deployment yet, but I'd like to display a semi-functional splash site that uses lots of the same assets. So I

[Capistrano] Re: Deploying from a specific path with a Git repo

2009-01-15 Thread David Masover
On Thu, Jan 15, 2009 at 11:44 AM, Henry hpoy...@gmail.com wrote: ...I have another big rails app that is not ready for deployment yet, but I'd like to display a semi-functional splash site that uses lots of the same assets. So I have a one-file sinatra app sitting in another directory in

[Capistrano] Re: Deploying from a specific path with a Git repo

2009-01-15 Thread Wincent Colaiuta
On 15 ene, 18:44, Henry hpoy...@gmail.com wrote: Thanks for the reply.  I understand the best practice of 1 repo == 1 project.   But sometimes it just doesn't make sense.  For example, I have another big rails app that is not ready for deployment yet, but I'd like to display a semi-functional