Fix SSH Agent Forwarding exmaple

This commit is contained in:
Hidekazu Tanaka 2016-03-30 14:16:10 +09:00 committed by Chris Bednarski
parent b7bff9d251
commit 3728e076fe
1 changed files with 12 additions and 5 deletions

View File

@ -192,9 +192,16 @@ provisioner](/docs/provisioners/file.html) (more secure) or using `ssh-keyscan`
to populate the file (less secure). An example of the latter accessing github
would be:
{ "type": "shell", "inline": \[ "sudo apt-get install -y git", "ssh-keyscan
github.com >> \~/.ssh/known\_hosts", "git clone
git@github.com:exampleorg/myprivaterepo.git" \] }
``` {.javascript}
{
"type": "shell",
"inline": [
"sudo apt-get install -y git",
"ssh-keyscan github.com >> ~/.ssh/known_hosts",
"git clone git@github.com:exampleorg/myprivaterepo.git"
]
}
```
## Troubleshooting