ssh-config now outputs configured config.ssh.host
This commit is contained in:
parent
8d55bdcae5
commit
e02b871d1c
|
@ -14,6 +14,7 @@
|
|||
root on the VM.
|
||||
- Gentoo host only networking no longer fails if alrady setup. [GH-286]
|
||||
- Set the host name of your guest OS with `config.vm.host_name` [GH-273]
|
||||
- `vagrant ssh-config` now outputs the configured `config.ssh.host`
|
||||
|
||||
## 0.7.0 (January 19, 2011)
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ module Vagrant
|
|||
|
||||
$stdout.puts(Util::TemplateRenderer.render("ssh_config", {
|
||||
:host_key => options[:host] || "vagrant",
|
||||
:ssh_host => vm.env.config.ssh.host,
|
||||
:ssh_user => vm.env.config.ssh.username,
|
||||
:ssh_port => vm.ssh.port,
|
||||
:private_key_path => vm.env.config.ssh.private_key_path
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Host <%= host_key %>
|
||||
HostName 127.0.0.1
|
||||
HostName <%= ssh_host %>
|
||||
User <%= ssh_user %>
|
||||
Port <%= ssh_port %>
|
||||
UserKnownHostsFile /dev/null
|
||||
|
|
Loading…
Reference in New Issue