diff options
author | elijah <elijah@riseup.net> | 2012-10-30 13:06:05 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-10-30 13:06:05 -0700 |
commit | 753d0049a2dd952eab47df89175611298d7f8755 (patch) | |
tree | a5e515bb2d6b8eac6414739ecb3a5db7e383d5be /lib | |
parent | f8c98e7e15a92efdf384f6e4074df8c0d005871a (diff) | |
download | leap_cli-753d0049a2dd952eab47df89175611298d7f8755.tar.gz leap_cli-753d0049a2dd952eab47df89175611298d7f8755.tar.bz2 |
use GlobalKnownHostsFile for rsync and ssh instead of UserKnownHostsFile.
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 |