- From: Bryan McLellan <
>
- To:
- Subject: [chef] Re: Re: knife ssh - different port for single host
- Date: Thu, 1 Nov 2012 16:38:10 -0400
On Thu, Nov 1, 2012 at 8:38 AM, Steffen Gebert
<
>
wrote:
>
Is it possible to change the port for a single host?
>
~/.ssh/config is unfortunately not interpreted.
On Thu, Nov 1, 2012 at 11:45 AM, John Dewey
<
>
wrote:
>
Host foo.bar.example.com
>
Port 6670
This works, except we break it by sending port 22 to Net::SSH:Multi
even if we don't specify it explicitly.
Delete the line below from ssh.rb and it will work.
http://tickets.opscode.com/browse/CHEF-3577
Bryan
--- /home/btm/src/chef/chef/lib/chef/knife/ssh.rb 2012-10-31
11:42:20.351186646 -0700
+++
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.16.2/lib/chef/knife/ssh.rb
2012-11-01
13:32:18.290876884 -0700
@@ -72,7 +72,6 @@
:short => "-p PORT",
:long => "--ssh-port PORT",
:description => "The ssh port",
- :default => "22",
:proc => Proc.new { |key| Chef::Config[:knife][:ssh_port] = key }
option :ssh_gateway,
Archive powered by MHonArc 2.6.16.