From f8c98e7e15a92efdf384f6e4074df8c0d005871a Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 29 Oct 2012 14:52:50 -0700 Subject: fixed 'leap ssh' with nonstandard port --- lib/leap_cli/commands/shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb index df392bd..8101904 100644 --- a/lib/leap_cli/commands/shell.rb +++ b/lib/leap_cli/commands/shell.rb @@ -5,7 +5,7 @@ module LeapCli; module Commands command :shell, :ssh do |c| c.action do |global_options,options,args| node = get_node_from_args(args) - exec "ssh -l root -o 'HostName=#{node.ip_address}' -o 'HostKeyAlias=#{node.name}' -o 'UserKnownHostsFile=#{path(:known_hosts)}' -o 'StrictHostKeyChecking=yes' #{node.name}" + exec "ssh -l root -o 'HostName=#{node.ip_address}' -o 'HostKeyAlias=#{node.name}' -o 'UserKnownHostsFile=#{path(:known_hosts)}' -o 'StrictHostKeyChecking=yes' -p #{node.ssh.port} #{node.name}" end end -- cgit v1.2.3