summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/ssh.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2016-07-01 22:38:09 -0700
committerelijah <elijah@riseup.net>2016-07-01 22:38:09 -0700
commitf354e8fa66e49bd989aba196488bfc12f27a92ac (patch)
treea232e682ba515c485cea51261c0fbdc74386859e /lib/leap_cli/commands/ssh.rb
parent5780f5dcc024d4f140fe8f6e8dc3f7c4e905a8ec (diff)
fix access to vagrant key file
Diffstat (limited to 'lib/leap_cli/commands/ssh.rb')
-rw-r--r--lib/leap_cli/commands/ssh.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/ssh.rb b/lib/leap_cli/commands/ssh.rb
index 695812b8..03192071 100644
--- a/lib/leap_cli/commands/ssh.rb
+++ b/lib/leap_cli/commands/ssh.rb
@@ -179,7 +179,8 @@ module LeapCli; module Commands
"-o 'UserKnownHostsFile=/dev/null'"
]
if node.vagrant?
- options << "-i #{vagrant_ssh_key_file}" # use the universal vagrant insecure key
+ # use the universal vagrant insecure key:
+ options << "-i #{LeapCli::Util::Vagrant.vagrant_ssh_key_file}"
options << "-o IdentitiesOnly=yes" # force the use of the insecure vagrant key
options << "-o 'StrictHostKeyChecking=no'" # blindly accept host key and don't save it
# (since userknownhostsfile is /dev/null)