This is a Capistrano question (sorry if those aren''t encouraged), but am I understanding this wrong? [deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx port 22: Connection refused ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed unexpectedly in my deploy.rb I have this: ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) ssh_options[:port] = 6666 which I assumed would tell Capistrano to use port 6666. It worked fine through the other tasks that I used but this one doesn''t seem to get it. This strikes me as pretty wierd. Any suggestions? I mean it seems like this is something pretty fundamentally wrong on my part. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
joshuajnoble wrote:> This is a Capistrano question (sorry if those aren''t encouraged), but > am I understanding this wrong? > > [deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command > ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx > port 22: Connection refused > ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed unexpectedly > > in my deploy.rb I have this: > > ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) > ssh_options[:port] = 6666 > > which I assumed would tell Capistrano to use port 6666. It worked fine > through the other tasks that I used but this one doesn''t seem to get > it. This strikes me as pretty wierd. Any suggestions? I mean it seems > like this is something pretty fundamentally wrong on my part. >I remember struggling with something similar with Capistrano myself. I remember trying the suggestions of adding the server info to the .config file of my .ssh directory and the config file in my subversion directory, but it still blew up during a deploy. I meant to file a bug report with Jamis, but I got lazy. I''m not in front of my linux box right now, so I can''t tell you exactly what my work around was, but I remember it was kind of kludgy. HTH, Jamey Cribbs --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yeah, I''m in the midst of trying to get around this, but I would think if this was a real problem (i.e. not implemented, vs just a configuration problem) more people would have noticed it. I mean, not being able to use any port other than 22 seems like it might be a kind of large piece of missing functionality, or am I one of the few people logging in from ports other than 22? On Jun 5, 1:47 pm, Jamey Cribbs <jcri...-5tZyCCM3m2VWk0Htik3J/w@public.gmane.org> wrote:> joshuajnoble wrote: > > This is a Capistrano question (sorry if those aren''t encouraged), but > > am I understanding this wrong? > > > [dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command > > ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx > > port 22: Connection refused > > ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed unexpectedly > > > in my deploy.rb I have this: > > > ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) > > ssh_options[:port] = 6666 > > > which I assumed would tell Capistrano to use port 6666. It worked fine > > through the other tasks that I used but this one doesn''t seem to get > > it. This strikes me as pretty wierd. Any suggestions? I mean it seems > > like this is something pretty fundamentally wrong on my part. > > I remember struggling with something similar with Capistrano myself. I > remember trying the suggestions of adding the server info to the .config > file of my .ssh directory and the config file in my subversion > directory, but it still blew up during a deploy. I meant to file a bug > report with Jamis, but I got lazy. > > I''m not in front of my linux box right now, so I can''t tell you exactly > what my work around was, but I remember it was kind of kludgy. > > HTH, > > Jamey Cribbs--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I gave this a try to no avail def self.connect(server, config, port=6666, &block) methods = [ %w(publickey hostbased), %w(password keyboard- interactive) ] password_value = nil user, server_stripped, pport = parse_server(server) begin ssh_options = { :username => (user || config.user), :password => password_value, #:port => ((pport && pport != port) ? pport : port), :port => 6666, :auth_methods => methods.shift }.merge(config.ssh_options) Net::SSH.start(server_stripped,ssh_options,&block) rescue Net::SSH::AuthenticationFailed raise if methods.empty? password_value = config.password retry end end But still no love, so I really don''t know where port 22 could be getting defined. Do I have to change my access port in order to use Capistrano? On Jun 5, 1:57 pm, joshuajnoble <joshuajno...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yeah, I''m in the midst of trying to get around this, but I would think > if this was a real problem (i.e. not implemented, vs just a > configuration problem) more people would have noticed it. I mean, not > being able to use any port other than 22 seems like it might be a kind > of large piece of missing functionality, or am I one of the few people > logging in from ports other than 22? > > On Jun 5, 1:47 pm, Jamey Cribbs <jcri...-5tZyCCM3m2VWk0Htik3J/w@public.gmane.org> wrote: > > > joshuajnoble wrote: > > > This is a Capistrano question (sorry if those aren''t encouraged), but > > > am I understanding this wrong? > > > > [dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command > > > ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx > > > port 22: Connection refused > > > ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed unexpectedly > > > > in my deploy.rb I have this: > > > > ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) > > > ssh_options[:port] = 6666 > > > > which I assumed would tell Capistrano to use port 6666. It worked fine > > > through the other tasks that I used but this one doesn''t seem to get > > > it. This strikes me as pretty wierd. Any suggestions? I mean it seems > > > like this is something pretty fundamentally wrong on my part. > > > I remember struggling with something similar with Capistrano myself. I > > remember trying the suggestions of adding the server info to the .config > > file of my .ssh directory and the config file in my subversion > > directory, but it still blew up during a deploy. I meant to file a bug > > report with Jamis, but I got lazy. > > > I''m not in front of my linux box right now, so I can''t tell you exactly > > what my work around was, but I remember it was kind of kludgy. > > > HTH, > > > Jamey Cribbs--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Josh- If you have cap 1.4.1 installed then you can set the port for each server in the role setting: role :web, "65.76.159.124:6800" Cap will just do the right thing then. CHeers- -Ezra On Jun 5, 2007, at 11:23 AM, joshuajnoble wrote:> > > I gave this a try to no avail > > def self.connect(server, config, port=6666, &block) > methods = [ %w(publickey hostbased), %w(password keyboard- > interactive) ] > password_value = nil > > user, server_stripped, pport = parse_server(server) > > begin > ssh_options = { :username => (user || config.user), > :password => password_value, > #:port => ((pport && pport != port) ? pport : port), > :port => 6666, > :auth_methods => methods.shift }.merge(config.ssh_options) > Net::SSH.start(server_stripped,ssh_options,&block) > rescue Net::SSH::AuthenticationFailed > raise if methods.empty? > password_value = config.password > retry > end > end > > But still no love, so I really don''t know where port 22 could be > getting defined. Do I have to change my access port in order to use > Capistrano? > > On Jun 5, 1:57 pm, joshuajnoble <joshuajno...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Yeah, I''m in the midst of trying to get around this, but I would >> think >> if this was a real problem (i.e. not implemented, vs just a >> configuration problem) more people would have noticed it. I mean, not >> being able to use any port other than 22 seems like it might be a >> kind >> of large piece of missing functionality, or am I one of the few >> people >> logging in from ports other than 22? >> >> On Jun 5, 1:47 pm, Jamey Cribbs <jcri...-5tZyCCM3m2VWk0Htik3J/w@public.gmane.org> wrote: >> >>> joshuajnoble wrote: >>>> This is a Capistrano question (sorry if those aren''t >>>> encouraged), but >>>> am I understanding this wrong? >> >>>> [dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command >>>> ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx >>>> port 22: Connection refused >>>> ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed >>>> unexpectedly >> >>>> in my deploy.rb I have this: >> >>>> ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) >>>> ssh_options[:port] = 6666 >> >>>> which I assumed would tell Capistrano to use port 6666. It >>>> worked fine >>>> through the other tasks that I used but this one doesn''t seem to >>>> get >>>> it. This strikes me as pretty wierd. Any suggestions? I mean it >>>> seems >>>> like this is something pretty fundamentally wrong on my part. >> >>> I remember struggling with something similar with Capistrano >>> myself. I >>> remember trying the suggestions of adding the server info to >>> the .config >>> file of my .ssh directory and the config file in my subversion >>> directory, but it still blew up during a deploy. I meant to file >>> a bug >>> report with Jamis, but I got lazy. >> >>> I''m not in front of my linux box right now, so I can''t tell you >>> exactly >>> what my work around was, but I remember it was kind of kludgy. >> >>> HTH, >> >>> Jamey Cribbs > > > >-- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez-NLltGlunAUd/unjJdyJNww@public.gmane.org -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the tip. I noticed that when I was looking at the ssh.rb file. I ended up just changing my port. On Jun 5, 8:07 pm, Ezra Zygmuntowicz <ezmob...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Josh- > > If you have cap 1.4.1 installed then you can set the port for each > server in the role setting: > > role :web, "65.76.159.124:6800" > > Cap will just do the right thing then. > > CHeers- > -Ezra > > On Jun 5, 2007, at 11:23 AM, joshuajnoble wrote: > > > > > > > I gave this a try to no avail > > > def self.connect(server, config, port=6666, &block) > > methods = [ %w(publickey hostbased), %w(password keyboard- > > interactive) ] > > password_value = nil > > > user, server_stripped, pport = parse_server(server) > > > begin > > ssh_options = { :username => (user || config.user), > > :password => password_value, > > #:port => ((pport && pport != port) ? pport : port), > > :port => 6666, > > :auth_methods => methods.shift }.merge(config.ssh_options) > > Net::SSH.start(server_stripped,ssh_options,&block) > > rescue Net::SSH::AuthenticationFailed > > raise if methods.empty? > > password_value = config.password > > retry > > end > > end > > > But still no love, so I really don''t know where port 22 could be > > getting defined. Do I have to change my access port in order to use > > Capistrano? > > > On Jun 5, 1:57 pm, joshuajnoble <joshuajno...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Yeah, I''m in the midst of trying to get around this, but I would > >> think > >> if this was a real problem (i.e. not implemented, vs just a > >> configuration problem) more people would have noticed it. I mean, not > >> being able to use any port other than 22 seems like it might be a > >> kind > >> of large piece of missing functionality, or am I one of the few > >> people > >> logging in from ports other than 22? > > >> On Jun 5, 1:47 pm, Jamey Cribbs <jcri...-5tZyCCM3m2VWk0Htik3J/w@public.gmane.org> wrote: > > >>> joshuajnoble wrote: > >>>> This is a Capistrano question (sorry if those aren''t > >>>> encouraged), but > >>>> am I understanding this wrong? > > >>>> [dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command > >>>> ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx > >>>> port 22: Connection refused > >>>> ** [out :: dep...-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed > >>>> unexpectedly > > >>>> in my deploy.rb I have this: > > >>>> ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) > >>>> ssh_options[:port] = 6666 > > >>>> which I assumed would tell Capistrano to use port 6666. It > >>>> worked fine > >>>> through the other tasks that I used but this one doesn''t seem to > >>>> get > >>>> it. This strikes me as pretty wierd. Any suggestions? I mean it > >>>> seems > >>>> like this is something pretty fundamentally wrong on my part. > > >>> I remember struggling with something similar with Capistrano > >>> myself. I > >>> remember trying the suggestions of adding the server info to > >>> the .config > >>> file of my .ssh directory and the config file in my subversion > >>> directory, but it still blew up during a deploy. I meant to file > >>> a bug > >>> report with Jamis, but I got lazy. > > >>> I''m not in front of my linux box right now, so I can''t tell you > >>> exactly > >>> what my work around was, but I remember it was kind of kludgy. > > >>> HTH, > > >>> Jamey Cribbs > > -- Ezra Zygmuntowicz > -- Lead Rails Evangelist > -- e...-NLltGlunAUd/unjJdyJNww@public.gmane.org > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273)--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Having same problems. If you find a cure other than changing port number. Let me know. Cheers Zach Inglis → Blog -- http://www.zachinglis.com → Company -- http://www.lt3media.com → Portfolio -- http://portfolio.zachinglis.com → Web Designer → Print Designer → Identity Desginer → Ruby on Rails developer → et plus. → AIM: zachinglis → MSN: zachinglis-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org → Others available on request On Jun 5, 2007, at 12:39 PM, joshuajnoble wrote:> > This is a Capistrano question (sorry if those aren''t encouraged), but > am I understanding this wrong? > > [deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] executing command > ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] ssh: connect to host xxx.xx.xx.xxx > port 22: Connection refused > ** [out :: deploy-tMWPvfnxmQ1wJV6/ZUC3rg@public.gmane.org] svn: Connection closed unexpectedly > > in my deploy.rb I have this: > > ssh_options[:keys] = %w(/Users/base/.ssh/id_dsa) > ssh_options[:port] = 6666 > > which I assumed would tell Capistrano to use port 6666. It worked fine > through the other tasks that I used but this one doesn''t seem to get > it. This strikes me as pretty wierd. Any suggestions? I mean it seems > like this is something pretty fundamentally wrong on my part. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---