summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-29 14:52:50 -0700
committerelijah <elijah@riseup.net>2012-10-29 14:52:50 -0700
commitf8c98e7e15a92efdf384f6e4074df8c0d005871a (patch)
tree78e5a578662ee68ea6f36a982ab115b5c03488d0
parent8fe7bc1df1e58fa68651f29a0f75ecd7454d742f (diff)
fixed 'leap ssh' with nonstandard port
-rw-r--r--lib/leap_cli/commands/shell.rb2
1 files changed, 1 insertions, 1 deletions
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