77 Commits

Author SHA1 Message Date
Mitchell Hashimoto
dd4acb1e3d Convert remaining logger calls outside of environment to log4r 2011-12-01 21:56:56 -08:00
Mitchell Hashimoto
8bb6d375f1 Use test SSH commands for additional verification SSH is "up" 2011-11-25 23:48:00 -07:00
Mitchell Hashimoto
15efdf5a1a Remove complicated Net::SSH session caching... thing.x 2011-11-25 23:20:16 -07:00
Mitchell Hashimoto
f6055f8711 Merge remote-tracking branch 'ody/debian/master/honor_config_setting' 2011-11-24 21:49:30 -07:00
Eriksen Costa
82c679b9a5 Kernel.exec still failing in OS X Leopard [closes GH-544] 2011-11-24 21:32:44 -07:00
Cody Herriges
48f3ce5880 Makes the execute method honor max_tries.
Vagrant::SSH.execute is hard coded for only 5 tries, this makes
  starting Debian machines very unreliable.  Debian will reset
  networking when you create a new hostonly NIC or change the hostname
  of the machine and occasionally the coming up part takes longer than
  what is provided by 5 tries.  Making this method honor the max_tries
  config option will make it possible to avoid this.
2011-09-21 13:27:23 -07:00
Mitchell Hashimoto
6300bebe72 Disable SSH caching for now 2011-07-21 14:55:03 -07:00
Mitchell Hashimoto
fddc058e43 Reconnect SSH if the session closes 2011-07-21 10:53:58 -07:00
Mitchell Hashimoto
0dacd78b10 Add forwarded_port_destination to find SSH port by that instead of key. [closes GH-375] 2011-07-10 22:41:35 -07:00
Mitchell Hashimoto
0515d9a61e Add more logging but default to it off for now until we add more later 2011-07-10 21:41:52 -07:00
Mitchell Hashimoto
52c5c79edf Retry connection on Net::SSH::Disconnect [closes GH-313] 2011-07-09 17:02:41 -07:00
Mitchell Hashimoto
5143556065 Standardize on Util::Platform 2011-07-09 16:51:04 -07:00
Mitchell Hashimoto
1aed9f0f38 Remove leopard/tiger checking and just retry exec using safe_exec 2011-07-09 16:37:12 -07:00
Mitchell Hashimoto
1cf379a1f0 Be smart about loading files in Vagrant::SSH 2011-07-09 11:21:37 -07:00
Mitchell Hashimoto
d77738b37f Cache SSH connections to VMs. 2011-07-07 23:15:19 -07:00
tH34UT0m4t0R
e72753874d add port option to ssh config 2011-05-13 17:23:24 -07:00
Will St. Clair
efd7c790e6 Suppress the "added to known hosts file" warning
Vagrant already disables StrictHostKeyChecking and redirects UserKnownHostsFile to /dev/null, so we may as well suppress the meaningless warning also.
2011-05-11 23:37:46 -07:00
Mitchell Hashimoto
3c45df0a88 Can now configure what shell to sudo with (default: bash) 2011-02-08 23:06:05 -08:00
Petyo Ivanov
31cc69cfa0 Fixed untrusted X11 forwarding when logging in.
Best explained here:
http://www.mail-archive.com/cygwin-xfree@cygwin.com/msg17927.html
2011-01-21 14:00:16 -08:00
Mitchell Hashimoto
59fa9ac46b net-ssh 2.1.0. Adds "IdentitiesOnly" support for net-ssh, fixing problems. 2011-01-19 22:00:38 -08:00
Mitchell Hashimoto
9673b7eaee Remove config.ssh.port, it actually never did anything 2011-01-14 00:36:49 -08:00
Mitchell Hashimoto
547996e506 We don't need net-ssh-shell after all 2011-01-12 16:58:13 -08:00
Mitchell Hashimoto
8482eeff0b net-ssh-shell support for shell-based SSH interactions 2011-01-12 15:21:54 -08:00
Mitchell Hashimoto
496f68fd6a Move SSH::Session to its own file 2011-01-05 16:45:05 -08:00
Petyo Ivanov
b9e24090e9 Add X11 ssh forwarding option (off by default). 2011-01-04 20:17:04 -08:00
Mitchell Hashimoto
7c7f5d48fe Don't need to call ".new" on raising exceptions 2010-12-21 20:04:21 -08:00
Mitchell Hashimoto
e98db8dc86 Determine SSH on main thread for up? to fix issues with multi-thread access on JRuby 2010-12-19 10:27:07 -08:00
Mitchell Hashimoto
59ae5747d0 Use timeout library instead of threads to check for VM boot 2010-12-18 18:50:59 -08:00
Mitchell Hashimoto
c5b81b5998 SSH gives error message if ssh binary is not found. [closes GH-161] 2010-09-29 23:47:17 -07:00
Mitchell Hashimoto
759bbd046b Raise proper exception if SSH connection is refused with message to help people. 2010-09-14 15:00:46 -06:00
Mitchell Hashimoto
ea35608f64 Retry on SSH#exec! as well 2010-09-09 00:35:02 -07:00
Mitchell Hashimoto
f8e7431899 Retry SSH connect a few times before admitting defeat. 2010-09-09 00:28:21 -07:00
Mitchell Hashimoto
337eec2d07 Fork-and-wait on Tiger as well as leopard. [related to GH-51] 2010-09-07 14:19:06 -07:00
Mitchell Hashimoto
43cdcb7808 Config can now be deserialized as well as serialized to JSON 2010-09-01 21:01:15 -07:00
Mitchell Hashimoto
364233527e SSH no longer raises ActionException. Raises VagrantError 2010-09-01 10:00:49 -07:00
Mitchell Hashimoto
ce080e908f Cleaned up most command string literals and SSH 2010-08-27 21:12:18 -07:00
Mitchell Hashimoto
0b03502bf2 Converted final error_and_exit in ssh.rb to exceptions 2010-08-27 00:05:40 -07:00
Mitchell Hashimoto
bab369e856 SSHAuthenticationFailed error 2010-08-27 00:01:27 -07:00
Mitchell Hashimoto
500a63c269 Fix some bugs in the SSH tests, replace one error_and_exit with an exception 2010-08-26 23:51:30 -07:00
Mitchell Hashimoto
a699122260 No more logger usage for outputting to the shell 2010-08-25 22:38:24 -07:00
Mitchell Hashimoto
4844d6c12f Moved standard library requirements to the files which use them. Cleaned up vagrant.rb quite a bit. 2010-08-23 21:43:46 -07:00
Mitchell Hashimoto
f3a6dc8479 Added "IdentitiesOnly" flag to vagrant ssh to avoid "Too Many Auth Failures" error message 2010-08-02 19:52:11 -07:00
Mitchell Hashimoto
3848a2dd52 Get rid of some outdated TODOs 2010-07-26 08:56:55 -07:00
Mitchell Hashimoto
c82308f8da config.ssh.forward_agent option added [closes GH-105] 2010-07-08 22:38:14 -07:00
Mitchell Hashimoto
13a46ac1bd ActionException on Vagrant::Action 2010-07-08 21:30:36 -07:00
Mitchell Hashimoto
c643aa1513 Fix issue with VirtualBox.version being nil in forked process 2010-06-24 10:35:32 -07:00
Mitchell Hashimoto
9e931dd350 VirtualBox minimum version bumped to 3.2 2010-06-17 23:08:38 -07:00
Mitchell Hashimoto
e6760d8f5b s/nat engine/nat driver/ 2010-06-17 22:38:25 -07:00
Mitchell Hashimoto
d257703496 SSH gets port from proper place in 3.2.x 2010-06-17 22:31:01 -07:00
Mitchell Hashimoto
b56994d11d Internal SSH ignores ssh config file. Also added PasswordAuthentication no to ssh-config output 2010-06-05 18:52:52 -07:00