]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fixed 'leap ssh' with nonstandard port
authorelijah <elijah@riseup.net>
Mon, 29 Oct 2012 21:52:50 +0000 (14:52 -0700)
committerelijah <elijah@riseup.net>
Mon, 29 Oct 2012 21:52:50 +0000 (14:52 -0700)
lib/leap_cli/commands/shell.rb

index df392bd0869d27f04210016a0a6279bd37ecc109..81019041355ab604f3a3967b517456494bef731f 100644 (file)
@@ -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