diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/commands/shell.rb | 2 | ||||
-rw-r--r-- | lib/leap_cli/commands/util.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb index 8101904..a84c671 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' -p #{node.ssh.port} #{node.name}" + exec "ssh -l root -o 'HostName=#{node.ip_address}' -o 'HostKeyAlias=#{node.name}' -o 'GlobalKnownHostsFile=#{path(:known_hosts)}' -o 'StrictHostKeyChecking=yes' -p #{node.ssh.port} #{node.name}" end end diff --git a/lib/leap_cli/commands/util.rb b/lib/leap_cli/commands/util.rb index d9e6923..164ce0d 100644 --- a/lib/leap_cli/commands/util.rb +++ b/lib/leap_cli/commands/util.rb @@ -93,7 +93,7 @@ module LeapCli; module Commands def ssh_options { :config => false, - :user_known_hosts_file => path(:known_hosts), + :global_known_hosts_file => path(:known_hosts), :paranoid => true } end |