lib/tasks/git_wit.rake in git_wit-0.0.4.pre2 vs lib/tasks/git_wit.rake in git_wit-0.0.5
- old
+ new
@@ -14,10 +14,12 @@
pub_key = File.open(pub_key_file) { |f| f.read }
debug_key = GitWit::AuthorizedKeys::Key.shell_key_for_username user, pub_key, true
GitWit.authorized_keys_file.add debug_key
puts "Added key: #{debug_key}"
- cmd = %(SSH_AUTH_SOCK="" ssh -i "#{key_file}" #{GitWit.ssh_user}@localhost test 123)
+ cmd = %(SSH_AUTH_SOCK="" ssh ) +
+ %(-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ) +
+ %(-i "#{key_file}" #{GitWit.ssh_user}@localhost test 123)
puts "Running #{cmd}"
out = `#{cmd}`
puts out
if $?.success?
puts "Success"
\ No newline at end of file