98 Commits

Author SHA1 Message Date
Zev Blut
ed894ab3a3 Fix syntax error for exception message. 2012-01-13 12:56:17 +09:00
Mitchell Hashimoto
6d212efdbd Fix ppk path by just... not using ppk anymore. [GH-634] 2012-01-12 18:03:35 -08:00
Mitchell Hashimoto
8cc162f48f Options after -- to vagrant ssh are passed through to ssh [GH-554] 2012-01-11 23:49:42 -08:00
Mitchell Hashimoto
faaa763d50 SSH connect is now SSH exec 2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
19c1340e40 Vagrant::SSH no longer handles actual communication with the VM 2012-01-06 20:07:32 -08:00
Mitchell Hashimoto
acaabd5aa3 Remove forwarded_port_key/destination from config, replace with guest_port 2012-01-06 20:07:31 -08:00
Mitchell Hashimoto
586f506eff Fix a terrible typo that causes vagrant ssh to fail 2012-01-05 23:08:20 -08:00
Mitchell Hashimoto
026a551496 vagrant ssh -p is now plain mode 2012-01-04 21:28:30 -08:00
Jeff Forcier
72b609f0a6 Allow 'vagrant ssh' to strip most non-port options.
Adds a -p flag to 'vagrant ssh' which strips out username, private key
args, allowing the local user's ssh settings to take full effect.
2012-01-04 12:37:23 -08:00
Mitchell Hashimoto
48ea8173c6 Lots more VBoxManage 2011-12-21 13:37:59 -08:00
Mitchell Hashimoto
ad03163eff Tweak timeouts so SSh detection works 2011-12-11 16:41:51 -08:00
Mitchell Hashimoto
48f0a50e61 More logging in SSH class 2011-12-11 16:39:36 -08:00
Mitchell Hashimoto
05ae297fd2 Copy insecure private key to user owned directory [GH-580] 2011-12-11 16:32:25 -08:00
Mitchell Hashimoto
7d8f6e511b Fix syntax error 2011-12-10 21:30:54 -08:00
Mitchell Hashimoto
f44f1831ef Special error message if SCP is unavailable [GH-568] 2011-12-10 21:30:04 -08:00
Mitchell Hashimoto
98448d5557 Merge branch '089' 2011-12-10 21:11:36 -08:00
Mitchell Hashimoto
00c40f82b1 Return true on ssh up? 2011-12-10 21:07:45 -08:00
Mitchell Hashimoto
b65cb54636 Remove the "echo hello" check because it does nothing. 2011-12-10 20:42:34 -08:00
Hedgehog
a4423270f7 sleeping with the fiSSHes? 2011-12-10 20:33:12 -08:00
Mitchell Hashimoto
e9f8e4dc91 Revert 8bb6d375 since it actually didn't help at all. 2011-12-10 20:23:52 -08:00
Mitchell Hashimoto
b4c5b854e2 SSH working with new changes 2011-12-10 12:49:35 -08:00
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