lib/aptible/cli/subcommands/ssh.rb in aptible-cli-0.3.5 vs lib/aptible/cli/subcommands/ssh.rb in aptible-cli-0.3.6

- old
+ new

@@ -24,10 +24,12 @@ ENV['ACCESS_TOKEN'] = fetch_token ENV['APTIBLE_COMMAND'] = command_from_args(*args) ENV['APTIBLE_APP'] = app.handle - Kernel.exec "ssh -o 'SendEnv=*' -p #{port} root@#{host}" + opts = " -o 'SendEnv=*' -o StrictHostKeyChecking=no " \ + '-o UserKnownHostsFile=/dev/null' + Kernel.exec "ssh #{opts} -p #{port} root@#{host}" end private def command_from_args(*args)